[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.from_dict.html [Back]  [Original]

bigframes.pandas.DataFrame.from_dict — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.DataFrame.from_dict#

classmethod DataFrame.from_dict(data: dict, orient: str = 'columns', dtype=None, columns=None) DataFrame[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) Of the form {field : array-like} or {field : dict}.

  • orient ({'columns', 'index', 'tight'}, default 'columns') The orientation of the data. If the keys of the passed dict should be the columns of the resulting DataFrame, pass columns (default). Otherwise if the keys should be rows, pass index. If tight, assume a dict with keys [index, columns, data, index_names, column_names].

  • dtype (dtype, default None) Data type to force after DataFrame construction, otherwise infer.

  • columns (list, default None) Column labels to use when orient='index'.

Raises:

ValueError If used with orient='columns' or orient='tight'.

Returns:

DataFrame.

Return type:

bigframes.pandas.DataFrame


Web Proxy Viewer  |  New URL  |  Original Page