Skip to content
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

REF: back DatetimeBlock, TimedeltaBlock by DTA/TDA #40456

Merged
merged 16 commits into from
Mar 30, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Broken off from #40149. Like #40149, this backs DTBlock/TDBlock by (sometimes 2D) DTA/TDA. Unlike #40149, this does not make the DTA backing DatetimeTZBlock sometimes-2D.

@jbrockmendel jbrockmendel added Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code labels Mar 22, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also pls rebase

pandas/core/sorting.py Show resolved Hide resolved
@jbrockmendel
Copy link
Member Author

rebased + green. between this and #40477 we're within striking distance of ripping out a couple more Block subclasses

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks pretty good, just a small comment

pandas/core/array_algos/take.py Show resolved Hide resolved
@jreback jreback added this to the 1.3 milestone Mar 29, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a question. what's failing on master?

@@ -9541,6 +9541,9 @@ def func(values: np.ndarray):

def blk_func(values, axis=1):
if isinstance(values, ExtensionArray):
if values.ndim == 2:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this just axis=axis ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. next pass

@jbrockmendel
Copy link
Member Author

just a question. what's failing on master?

havent looked this morning, but last night it was something td64/dt64-casting related merged into npdev

@@ -1172,6 +1174,7 @@ def _interpolate_with_fill(
limit_area=limit_area,
)

values = maybe_coerce_values(values)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prob can have maybe_coerce_values do downcasting (maybe)

@jreback jreback merged commit a3bb751 into pandas-dev:master Mar 30, 2021
@jbrockmendel jbrockmendel deleted the ref-hybrid-4 branch March 30, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants