Skip to content

API: deprecate DataFrame.from_items ? #17320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chris-b1 opened this issue Aug 24, 2017 · 1 comment · Fixed by #18529
Closed

API: deprecate DataFrame.from_items ? #17320

chris-b1 opened this issue Aug 24, 2017 · 1 comment · Fixed by #18529
Labels
API Design Deprecate Functionality to remove in pandas Needs Discussion Requires discussion from core team before further action
Milestone

Comments

@chris-b1
Copy link
Contributor

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

@chris-b1 chris-b1 added API Design Needs Discussion Requires discussion from core team before further action labels Aug 24, 2017
@jreback jreback added the Deprecate Functionality to remove in pandas label Aug 24, 2017
@bashtage
Copy link
Contributor

What about `orient='index'? I used this just last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Deprecate Functionality to remove in pandas Needs Discussion Requires discussion from core team before further action
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants