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

DEPR: ArrayManager #55044

Merged
merged 12 commits into from
Sep 20, 2023
Merged

DEPR: ArrayManager #55044

merged 12 commits into from
Sep 20, 2023

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Sep 7, 2023

@rhshadrach rhshadrach added Deprecate Functionality to remove in pandas ArrayManager labels Sep 7, 2023
@rhshadrach rhshadrach added this to the 2.2 milestone Sep 7, 2023
@rhshadrach
Copy link
Member Author

rhshadrach commented Sep 14, 2023

I'm seeing warnings related to the dateutil package upon import of pandas; is this expected?

https://github.com/pandas-dev/pandas/actions/runs/6177889227/job/16769987130?pr=55044#step:5:92

/opt/hostedtoolcache/Python/3.12.0-rc.2/x64/lib/python3.12/site-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
EPOCH = datetime.datetime.utcfromtimestamp(0)

cc @jbrockmendel @mroeschke @MarcoGorelli

@jbrockmendel
Copy link
Member

I'm seeing warnings related to the dateutil package upon import of pandas; is this expected?

I'm not surprised by the warning itself, but I'd expect it to be showing up on all builds, not specific to this PR

@rhshadrach
Copy link
Member Author

I'd expect it to be showing up on all builds, not specific to this PR

Thanks - maybe it's only incurred by using subprocess like the test added here. And even then, it only seems to happen in certain jobs.

pandas/__init__.py Outdated Show resolved Hide resolved
env=test_env,
check=True,
)
msg = "<string>:1: FutureWarning: Using ArrayManger through the environment"
Copy link
Member

Choose a reason for hiding this comment

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

typo ArrayManger -> ArrayManager

msg = "<string>:1: FutureWarning: Using ArrayManger through the environment"
stderr_msg = response.stderr.decode("utf-8")
if manager == "block":
assert msg not in stderr_msg, stderr_msg
Copy link
Member

Choose a reason for hiding this comment

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

do we want to tell them that the environment variable is deprecated even if they are using "block"?

Copy link
Member Author

Choose a reason for hiding this comment

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

I could go either way here - I anticipate it would be quite rare people are using the env variable, especially to specify block. Any preference?

Copy link
Member

Choose a reason for hiding this comment

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

very slight preference for warning but NBD

@jbrockmendel
Copy link
Member

handful of comments, generally looks good. the complexity of this deprecation (as opposed to just warning inside ArrayManager.__init__) makes me want to avoid the environment variable pattern in the future

…_array_manager

� Conflicts:
�	doc/source/whatsnew/v2.2.0.rst
@mroeschke mroeschke merged commit b303665 into pandas-dev:main Sep 20, 2023
32 of 33 checks passed
@mroeschke
Copy link
Member

Thanks @rhshadrach

@rhshadrach rhshadrach deleted the depr_array_manager branch September 20, 2023 02:21
hedeershowk pushed a commit to hedeershowk/pandas that referenced this pull request Sep 20, 2023
* DEPR: ArrayManager

* Fixup

* Test fixup

* debug CI

* Test fixup

* warn if PANDAS_DATA_MANAGER is set

* single_cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: ArrayManager
3 participants