classmethod DataFrame.from_items(items, columns=None, orient='columns')
[source]
Construct a DataFrame from a list of tuples.
Deprecated since version 0.23.0: from_items
is deprecated and will be removed in a future version. Use DataFrame.from_dict(dict(items))
instead. DataFrame.from_dict(OrderedDict(items))
may be used to preserve the key order.
Convert (key, value) pairs to DataFrame. The keys will be the axis index (usually the columns, but depends on the specified orientation). The values should be arrays or Series.
Parameters: |
|
---|---|
Returns: |
|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.DataFrame.from_items.html