We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DataFrame.assign()
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
Describe the bug
DataFrame.assign() should allow lists and ranges
To Reproduce
import pandas as pd df = pd.DataFrame({"a": [1,2,3]}) df = df.assign(b=lambda df: range(len(df)), c=lambda df: [10,20,30])
Need to update IntoColumn in _typing.pyi to include list[Scalar] and range
IntoColumn
_typing.pyi
list[Scalar]
range
Please complete the following information:
pyright
pandas-stubs
The text was updated successfully, but these errors were encountered:
DataFrame.assign(
Successfully merging a pull request may close this issue.
Describe the bug
DataFrame.assign()
should allow lists and rangesTo Reproduce
Need to update
IntoColumn
in_typing.pyi
to includelist[Scalar]
andrange
Please complete the following information:
pyright
1.1.400pandas-stubs
: development versionThe text was updated successfully, but these errors were encountered: