Skip to content

Conversation

@jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

This changes TDI.astype and TDA.astype in the cast with no-NAs to return float64 instead of int64, matching Series behavior.

@jorisvandenbossche
Copy link
Member

Is this "pandas convention" documented anywhere?

@jbrockmendel
Copy link
Member Author

Is this "pandas convention" documented anywhere?

Not that I'm aware of. I'm not a fan of this behavior, looking forward to making it unnecessary when we support non-nano td64

@jreback jreback added Refactor Internal refactoring of code Timedelta Timedelta data type Datetime Datetime data dtype labels Dec 16, 2020
@jreback jreback added this to the 1.3 milestone Dec 16, 2020
@jreback jreback merged commit 5ad4e57 into pandas-dev:master Dec 16, 2020
@jreback
Copy link
Contributor

jreback commented Dec 16, 2020

thanks @jbrockmendel yep nice refactor here.

@jbrockmendel jbrockmendel deleted the ref-cast-mint branch December 16, 2020 01:13
@jorisvandenbossche
Copy link
Member

I'm not a fan of this behavior, looking forward to making it unnecessary when we support non-nano td64

We already might want to start deprecating this in advance.

luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Datetime Datetime data dtype Refactor Internal refactoring of code Timedelta Timedelta data type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants