Skip to content

API: deprecate DataFrame.from_items ? #17320

Closed
@chris-b1

Description

@chris-b1

xref #4916, #17312

example of where it is needed

items = [
 ('a', [1,2,3]),
 ('b', ['j', 'k', 'l'])
]

df = pd.DataFrame.from_items(items)
df
Out[3]: 
   a  b
0  1  j
1  2  k
2  3  l

We possibly could deprecate this to shrink the construction api - I find DataFrame(dict(items)) easier to think about / remember (item is a pretty generic term), only downside I see is it discards order on <3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignDeprecateFunctionality to remove in pandasNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions