-
Notifications
You must be signed in to change notification settings - Fork 175
feat: Add support for {DataFrame,LazyFrame,Series}.clear method
#2896
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
base: main
Are you sure you want to change the base?
Conversation
|
I hope its okay I linked the I was looking to see it came from a feature request or had an origin in |
|
As pointed in the commit message "keep it simple for now", for now I am failing the case of n>0 for both pandas-like and dask. All other backend should be ok to review for now . Update: 3006fec is an attempt for pandas-like backends that allows to |
DataFrame.clear method{DataFrame,LazyFrame}.clear method
{DataFrame,LazyFrame}.clear method{DataFrame,LazyFrame,Series}.clear method
What type of PR is this? (check all applicable)
Related issues
DataFrame.clear#2890narwhals.empty_likeor another way to construct an empty Narwals frame with known schema and implementation #3296clearpola-rs/polars#7095Checklist
If you have comments or can explain your changes, please do so below
Opening as draft since we need to decide what to do for the cases in which the original dtype is non nullable for pandas (see #2890 (comment))