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

BUG: Preserve timezone in numpy_dtype for ArrowDtype #60514

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

Koookadooo
Copy link

  • Added tests in pandas/tests/dtypes/test_dtypes.py to ensure numpy_dtype preserves timezone information for ArrowDtype.
  • Type annotations are already present in the modified numpy_dtype function.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.
  • Added a note in the bug fixes section: - Fixed an issue where .convert_dtypes(dtype_backend="pyarrow") would strip timezone information from timezone-aware PyArrow timestamps. [GH#60237](https://github.com/pandas-dev/pandas/issues/60237)

@Koookadooo
Copy link
Author

pre-commit.ci autofix

@Koookadooo
Copy link
Author

pre-commit.ci autofix

@Koookadooo
Copy link
Author

pre-commit.ci autofix

@Koookadooo
Copy link
Author

pre-commit.ci autofix

@Koookadooo
Copy link
Author

pre-commit.ci autofix

@Koookadooo
Copy link
Author

pre-commit.ci autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: .convert_dtypes(dtype_backend="pyarrow") strips timezone from tz-aware pyarrow timestamp Series
1 participant