-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support for pl.List('*') #15489
Comments
Passing The difficulty here is that, on the Rust side, we don't really have the notion of a generic uninstantiated List type. |
@stinodego , this issue is happening with datetime too ;( |
For datetimes specifically, there is the dedicated cs.by_dtype(pl.Datetime).meta.serialize()
# {'DtypeColumn':[{'Datetime':['Microseconds',null]}]}
cs.datetime().meta.serialize()
# {'DtypeColumn': [{'Datetime': ['Milliseconds', '*']},
# {'Datetime': ['Milliseconds', None]},
# {'Datetime': ['Microseconds', '*']},
# {'Datetime': ['Microseconds', None]},
# {'Datetime': ['Nanoseconds', '*']},
# {'Datetime': ['Nanoseconds', None]}]} It uses It also has to do it for each possible The chat in #13683 may be relevant. |
@stinodego ohh i was using pl.Datetime therefore i might missed this Thank you i didnt now about cs.datetime() |
Bumping since as of
so |
Description
I noticed that in dataframe selection it is not possible to select columns by
by_dtype
(using selectors) when column isNESTED_DTYPES
.So why there is no such option of selecting by_dtype in higher levels like pl.List('*') or pl.List(pl.Any) (i know it does not exist)
I don't know much about Rust but even in python level, there is dummy solution :)
I figured out that in order to select pl.List columns we should specify the inner dtypes like:
pl.List(pl.String)
could someone tell is_dtype selection will be in python level or rust level?
Thank you for your time!
The text was updated successfully, but these errors were encountered: