We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Generator inherits from Iterator, Iterator inherits from Iterable. And list([iterable]) takes an Iterable as argument.
Generator
Iterator
Iterable
list([iterable])
So, why data in DataFrame(data) can't be an Iterable?
data
DataFrame(data)
pandas/pandas/core/frame.py
Lines 381 to 383 in 620abc4
Lines 407 to 408 in 620abc4
The text was updated successfully, but these errors were encountered:
Duplicate of #2193
I think we'd be open to making this work (by consuming the Iterable into a list).
Sorry, something went wrong.
No branches or pull requests
Generator
inherits fromIterator
,Iterator
inherits fromIterable
. Andlist([iterable])
takes anIterable
as argument.So, why
data
inDataFrame(data)
can't be anIterable
?pandas/pandas/core/frame.py
Lines 381 to 383 in 620abc4
pandas/pandas/core/frame.py
Lines 407 to 408 in 620abc4
The text was updated successfully, but these errors were encountered: