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
{{ message }}
Repository navigation
Pandas 1.2.0 compatibility - std() for the datetime64[ns] dtype #8214
changed the title [-]Pandas now implements `std()` for the `datetime64[ns]` dtype, but this doesn't work yet in dask because here the implementation of `std` generally depends on `var`, which doesn't work for datetimes.Some tests are skipped for this in `dask/dataframe/tests/test_arithmetics_reduction.py`[/-][+]Pandas 1.2.0 compatibility - `std()` for the `datetime64[ns]` dtype[/+]on Oct 4, 2021
Does this seem like an okay first issue? I'd like to take this on if so! I just don't want to start an issue someone else might be able to do much quicker if I get stuck. Thanks!
It's a pretty good first issue in that you probably don't need a ton of dask-specific knowledge. But it might be a good bit of work. Please feel free to take it on and ping me if you get stuck.
Hi there again! Sorry for not getting back to this sooner.
This isn't done but I'd rather not do more work on it until I have some feedback on how I am doing it, since I think y'all may have some good feedback to where I should be doing things differently.
Here's the commit: bglossner@922d7a1. I'll probably have more questions after this. Thanks a bunch and let me know if you'd rather have a PR instead!
I originally included timedelta in this as well but figured that might be feature creeping. Hopefully not hard to add, though (was just adding np.timedelta64 to the include for what I already had).
Activity
[-]Pandas now implements `std()` for the `datetime64[ns]` dtype, but this doesn't work yet in dask because here the implementation of `std` generally depends on `var`, which doesn't work for datetimes.Some tests are skipped for this in `dask/dataframe/tests/test_arithmetics_reduction.py`[/-][+]Pandas 1.2.0 compatibility - `std()` for the `datetime64[ns]` dtype[/+]jsignell commentedon Oct 4, 2021
I thought I'd split up #7100 to make it easier to keep track of the different parts.
bglossner commentedon Nov 4, 2021
Does this seem like an okay first issue? I'd like to take this on if so! I just don't want to start an issue someone else might be able to do much quicker if I get stuck. Thanks!
jsignell commentedon Nov 4, 2021
It's a pretty good first issue in that you probably don't need a ton of dask-specific knowledge. But it might be a good bit of work. Please feel free to take it on and ping me if you get stuck.
bglossner commentedon Nov 4, 2021
I'll give it a shot then! Thanks for such a quick response.
feat: add support for datetime64[ns] and timedelta for std (dask#8214)
bglossner commentedon Nov 27, 2021
Hi there again! Sorry for not getting back to this sooner.
This isn't done but I'd rather not do more work on it until I have some feedback on how I am doing it, since I think y'all may have some good feedback to where I should be doing things differently.
Here's the commit: bglossner@922d7a1. I'll probably have more questions after this. Thanks a bunch and let me know if you'd rather have a PR instead!
I originally included timedelta in this as well but figured that might be feature creeping. Hopefully not hard to add, though (was just adding
np.timedelta64to theincludefor what I already had).feat: add support for datetime64[ns] and timedelta for std (dask#8214)
feat: add support for datetime64[ns] dtype in std (dask#8214)
jsignell commentedon Nov 29, 2021
I left a few comments, but feel free to open a work in progress PR anytime.
bglossner commentedon Nov 29, 2021
Sweet, thanks! I left some responses/questions on the commit and will create a WIP PR for the next commit(s) I make.
bglossner commentedon Nov 30, 2021
Left some more interesting problems I am seeing in bglossner@922d7a1 when using 250 large numbers.
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
bglossner commentedon Jan 1, 2022
Sorry for the long break! Created a PR when you have the time. It addresses the
dtypeerror I was getting and also has code for doingaxis=1.jsignell commentedon Jan 6, 2022
No worries! Thanks for picking it back up!
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
Add std() support for datetime64[ns] dtype for Pandas-like objects (d…
Add `std()` support for `datetime64` `dtype` for pandas-like objects (#…
Add `std()` support for `datetime64` `dtype` for pandas-like objects (d…