You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
df::DataFrame is conceptually similar to groupby(df, []), so keys(df) could work but currently throws a MethodError. This change would simplify the mental model of using these objects.
The text was updated successfully, but these errors were encountered:
jariji
changed the title
Let DataFrame behave more like GroupedDataFrame with one group
Let DataFrame behave more like GroupedDataFrame with one zero-key group
Dec 27, 2022
keys(iterator)
For an iterator or collection that has keys and values (e.g. arrays and dictionaries), return an iterator over the
keys.
AbstractDataFrame is not an iterator (as opposed to GroupedDataFrame). Also I do not think we want to make it an iterator with a single (or no) groups.
I initially was open to discuss it, but it seems to me that it is almost impossible that we will change this decision (people would be confused if we made AbstractDataFrame iterable this way), so I am closing the issue. But maybe @nalimilan will have another opinion.
df::DataFrame
is conceptually similar togroupby(df, [])
, sokeys(df)
could work but currently throws aMethodError
. This change would simplify the mental model of using these objects.The text was updated successfully, but these errors were encountered: