-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[POC] CLN: use ExtensionBlock for datetime tz data #27072
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
[POC] CLN: use ExtensionBlock for datetime tz data #27072
Conversation
The failing tests that I started to look at, all indicate in some way to a bug or a missing aspect of the EA interface pandas/tests/extension/test_datetime.py::TestMethods::test_combine_le[US/Central]
pandas/tests/frame/test_alter_axes.py::TestDataFrameAlterAxes::test_convert_dti_to_series
pandas/tests/frame/test_combine_concat.py::TestDataFrameConcatCommon::test_concat_multiple_tzs
pandas/tests/frame/test_quantile.py::TestDataFrameQuantile::test_quantile_box
pandas/tests/frame/test_timeseries.py::TestDataFrameTimeSeriesMethods::test_diff_datetime_axis0[UTC]
pandas/tests/series/test_datetime_values.py::TestSeriesDatetimeValues::test_setitem_with_different_tz
pandas/tests/series/test_missing.py::TestSeriesMissingData::test_datetime64_tz_fillna
pandas/tests/series/test_quantile.py::TestSeriesQuantile::test_quantile_box
pandas/tests/series/indexing/test_indexing.py::test_basic_getitem_setitem_corner
|
closing as I think @jbrockmendel will be doing some work on this. |
@jbrockmendel is that correct? I need to convert the points above in issues, as we should discuss what to do with them. |
My last few PRs have been in/around the _try_coerce_args and _can_hold_element methods in Block subclasses. To the extent that that moves towards this goal, sure. I expect that ExtensionBlock._can_hold_element will end up being something like:
or even simpler if we have a validate_fill_value on the EA. |
@jorisvandenbossche some thoughts here:
|
closing as stale, likely needs a bit of work to get passing |
@jorisvandenbossche is this actually going anywhere? trying to clear the queue |
Closing to clear the queue. pls reopen if/when it becomes actionable. |
Trying out to simply use the ExtensionBlock instead of the current DatetimeTZBlock for datetime tz data (with the exception of one override to have
.values
backwards compatible), to see what breaks.