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

hypothesis.extra.pandas: generate timezone-aware datetime columns #4020

Open
keewis opened this issue Jun 25, 2024 · 0 comments
Open

hypothesis.extra.pandas: generate timezone-aware datetime columns #4020

keewis opened this issue Jun 25, 2024 · 0 comments
Labels
enhancement it's not broken, but we want it to be better interop how to play nicely with other packages

Comments

@keewis
Copy link
Contributor

keewis commented Jun 25, 2024

In pydata/xarray#9174, I've been trying to find a way to generate timezone-aware datetime columns using pdst.column, where the entire column would have the same timezone: I believe pandas doesn't support varying timezones outside of the object dtype.

However, it doesn't seem like hypothesis.extra.pandas currently supports this using pdst.column (I didn't check whether the creation of timezone-aware datetime indexes would work, though).

Would it be possible to add something to that end?

Not sure how that would look API-wise, but in addition to a timezone strategy, I'd also like to be able to specify the datetime unit (since xarray is currently restricted to just nanosecond resolution).

@Zac-HD Zac-HD added enhancement it's not broken, but we want it to be better interop how to play nicely with other packages labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement it's not broken, but we want it to be better interop how to play nicely with other packages
Projects
None yet
Development

No branches or pull requests

2 participants