http://www.52codes.net/develop/shell/57910.html
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’
dtype : dtype, default None
columns : list, default None
|
---|---|
Returns: | pandas.DataFrame |