-
-
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 18 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,6 @@ dependencies: | |
- pandas-gbq>=0.15.0 | ||
- pyyaml | ||
- py | ||
|
||
- pip: | ||
- tzdata>=2022.1; platform_system=="Windows" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ dependencies: | |
- numpy | ||
- python-dateutil | ||
- pytz | ||
|
||
- pip: | ||
- tzdata>=2022.1; platform_system=="Windows" |
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', | ||
|
@@ -57,7 +58,6 @@ matplotlib = "pandas:plotting._matplotlib" | |
[project.optional-dependencies] | ||
test = ['hypothesis>=6.34.2', 'pytest>=7.0.0', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0'] | ||
performance = ['bottleneck>=1.3.2', 'numba>=0.53.1', 'numexpr>=2.7.1'] | ||
timezone = ['tzdata>=2022.1'] | ||
mroeschke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
computation = ['scipy>=1.7.1', 'xarray>=0.21.0'] | ||
fss = ['fsspec>=2021.07.0'] | ||
aws = ['s3fs>=2021.08.0'] | ||
|
@@ -112,7 +112,6 @@ all = ['beautifulsoup4>=4.9.3', | |
'SQLAlchemy>=1.4.16', | ||
'tables>=3.6.1', | ||
'tabulate>=0.8.9', | ||
'tzdata>=2022.1', | ||
'xarray>=0.21.0', | ||
'xlrd>=2.0.1', | ||
'xlsxwriter>=1.4.3', | ||
|
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.
It's probably better to be consistent and go with the pip installed tzdata everywhere, so we don't get surprises if/when Github updates its runner images.
I guess there's a risk of things breaking for people without the tzdata package installed, but that's more of a zoneinfo/Python stdlib problem.
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.
agree, but isn't that what I've done (i.e. pip-installed tzdata)?
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.
I meant on all platforms not just Windows, sorry if I was unclear.
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.
ok, sure, I've removed the windows-specific condition, and have installed/required it everywhere