-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Construction of a DatetimeIndex from a list of Timestamp with timezone #51247
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
Changes from 12 commits
f4c9e0a
3a9cc7d
a0ac092
5a1983d
cafb5cc
9d6e2df
c19dca9
4a29800
1aaa8d0
fa3f2bc
b3c006e
3a561be
046a1e8
e18aebe
0f7891e
249f345
4b054da
fc5a2d4
51d44f4
d07b2ec
624e0e7
860338f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,5 @@ dependencies: | |
- pandas-gbq>=0.15.0 | ||
- pyyaml | ||
- py | ||
- pip: | ||
- tzdata>=2022.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,5 @@ dependencies: | |
- xlrd>=2.0.1 | ||
- xlsxwriter>=1.4.3 | ||
- zstandard>=0.15.2 | ||
- pip: | ||
- tzdata>=2022.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ dependencies: | |
- numpy | ||
- python-dateutil | ||
- pytz | ||
- pip: | ||
- tzdata>=2022.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -657,7 +657,7 @@ Optional libraries below the lowest tested version may still work, but are not c | |
+-----------------+-----------------+---------+ | ||
| tabulate |0.8.9 | X | | ||
+-----------------+-----------------+---------+ | ||
| tzdata |2022a | | | ||
| tzdata |2022.1 | | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we still want to edit the 1.5 file? |
||
+-----------------+-----------------+---------+ | ||
| xarray |0.19.0 | X | | ||
+-----------------+-----------------+---------+ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -659,6 +659,8 @@ If installed, we now require: | |
+-------------------+-----------------+----------+---------+ | ||
| python-dateutil | 2.8.2 | X | X | | ||
+-------------------+-----------------+----------+---------+ | ||
| tzdata | 2022.1 |on Windows| X | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is misleading, since you'll need this package if you don't have the tz db on your computer, regardless of OS. It's just that Windows always doesn't have it. Also, I'm pretty sure I added tzdata as an optional dep a while back, so if you could remove that too, that'd be great. EDIT: Actually, I'm wrong here, since pandas probably imports fine as long as you don't try to do datetime stuff. It'd still be good to clarify what it's needed for. |
||
+-------------------+-----------------+----------+---------+ | ||
|
||
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version. | ||
The following table lists the lowest version per library that is currently being tested throughout the development of pandas. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,8 @@ dependencies = [ | |
"numpy>=1.21.0; python_version>='3.10'", | ||
"numpy>=1.23.2; python_version>='3.11'", | ||
"python-dateutil>=2.8.2", | ||
"pytz>=2020.1" | ||
"pytz>=2020.1", | ||
"tzdata>=2022.1; platform_system=='Windows'" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this need to be checked in setup.py? or even just import it in timezones.pyx? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I honestly don't know, I couldn't reproduce this when building from source Tempted to just ship it, and then check with the nightlies? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lithomas1 thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM. I'll tag this as build to run the wheel builders, which should sniff this stuff out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lithomas1 did you try this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the wheel builder jobs ran on this PR. Looks like some failures. I don't have Windows access so I can't help more sorry. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ah, I see now sorry - thanks! Taking a look There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, you might need a check for this in setup.py? If you uninstall tzdata and try to run python setup.py develop, does this error correctly? I don't know if setuptools reads this section of pyproject.toml. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. giving this a go There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this worked In a new virtual environment on Windows, I:
and tzdata got installed, along with python-dateutil. Here's (part of) my output:
|
||
] | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these somehow be marked as windows-specific?