Skip to content

Pandas 1.2.0 compatibility - std() for the datetime64[ns] dtype #8214

Closed

Description

@jsignell

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

Activity

  1. 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
  2. jsignell commented on Oct 4, 2021

    @jsignell
    MemberAuthor

    I thought I'd split up #7100 to make it easier to keep track of the different parts.

  3. bglossner commented on Nov 4, 2021

    @bglossner
    Contributor

    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!

  4. jsignell commented on Nov 4, 2021

    @jsignell
    MemberAuthor

    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.

  5. bglossner commented on Nov 4, 2021

    @bglossner
    Contributor

    I'll give it a shot then! Thanks for such a quick response.

  6. bglossner commented on Nov 27, 2021

    @bglossner
    Contributor

    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).

  7. jsignell commented on Nov 29, 2021

    @jsignell
    MemberAuthor

    I left a few comments, but feel free to open a work in progress PR anytime.

  8. bglossner commented on Nov 29, 2021

    @bglossner
    Contributor

    Sweet, thanks! I left some responses/questions on the commit and will create a WIP PR for the next commit(s) I make.

  9. bglossner commented on Nov 30, 2021

    @bglossner
    Contributor

    Left some more interesting problems I am seeing in bglossner@922d7a1 when using 250 large numbers.

  10. bglossner commented on Jan 1, 2022

    @bglossner
    Contributor

    Sorry for the long break! Created a PR when you have the time. It addresses the dtype error I was getting and also has code for doing axis=1.

  11. jsignell commented on Jan 6, 2022

    @jsignell
    MemberAuthor

    No worries! Thanks for picking it back up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions