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
Series.get_chunks
Required for #5662
We need to be able to iterate over the chunks of a Series on the Python side. Example of desired functionality:
Series
s1 = pl.Series([1,2]) s2 = pl.Series([3,4]) s = pl.concat([s1, s2], rechunk=False) s.num_chunks() # returns 2 for c in s.get_chunks(): # iterate over chunks print(c) # prints `s1` then `s2` # shape: (2,) # Series: '' [i64] # [ # 1 # 2 # ] # shape: (2,) # Series: '' [i64] # [ # 3 # 4 # ]
Series.get_chunks should return an Iterable[Series]
Iterable[Series]
Actually we'd want the same functionality for iterating over de chunks of a DataFrame, but we can probably infer this from the Series chunks.
DataFrame
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem description
Required for #5662
We need to be able to iterate over the chunks of a
Series
on the Python side. Example of desired functionality:Series.get_chunks
should return anIterable[Series]
Actually we'd want the same functionality for iterating over de chunks of a
DataFrame
, but we can probably infer this from the Series chunks.The text was updated successfully, but these errors were encountered: