http://www.52codes.net/develop/shell/57910.html
pandas.DataFrame.from_dict
classmethod DataFrame.
from_dict
(data, orient='columns', dtype=None, columns=None)[source]
Construct DataFrame from dict of array-like or dicts.
Creates DataFrame object from dictionary by columns or by index allowing dtype specification.
Parameters: | data : dict
orient : {‘columns’, ‘index’}, default ‘columns’
|
---|