10000 Python and dependency bounds illustration by markcampanelli · Pull Request #2339 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Python and dependency bounds illustration #2339

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

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert change in minimum pandas version
  • Loading branch information
markcampanelli committed Dec 23, 2024
commit 545c1966dc56e86e8082eab09334330322290112
2 changes: 1 addition & 1 deletion benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"python": "3.9",
"build": "",
"numpy": "1.19.5",
"pandas": "1.4.0",
"pandas": "1.3.0",
"scipy": "1.6.0",
// Note: these don't have a minimum in setup.py
"h5py": "3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- h5py
- numba
- numpy >= 1.17.3
- pandas >= 1.4.0
- pandas >= 1.3.0
- pip
- pytest
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- h5py
- numba
- numpy >= 1.17.3
- pandas >= 1.4.0
- pandas >= 1.3.0
- pip
- pytest
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- h5py
- numba
- numpy >= 1.17.3
- pandas >= 1.4.0
- pandas >= 1.3.0
- pip
- pytest
- pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.9-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- pip:
- h5py==3.0.0
- numpy==1.19.3
- pandas==1.4.0 # min version of pvlib
- pandas==1.3.0 # min version of pvlib
- scipy==1.6.0
- pytest-rerunfailures # conda version is >3.6
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-py3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- h5py
- numba
- numpy >= 1.17.3
- pandas >= 1.4.0
- pandas >= 1.3.0
- pip
- pytest
- pytest-cov
Expand Down
1 change: 0 additions & 1 deletion docs/sphinx/source/whatsnew/v0.11.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Testing

Requirements
~~~~~~~~~~~~
* Minimum version of pandas advanced from 1.3.0 to 1.4.0. (:pull:`2341`)


Contributors
Expand Down
7 changes: 4 additions & 3 deletions pvlib/tests/test_tools.py
C552
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,12 @@ def test_localize_to_utc(input, expected):
got = tools.localize_to_utc(**input)

if isinstance(got, (pd.Series, pd.DataFrame)):
# Older pandas versions have wonky dtype check on index.
# Older pandas versions have wonky dtype equality check on timestamp
# index, so check the values as numpy.ndarray and indices one by one.
np.testing.assert_array_equal(got.to_numpy(), expected.to_numpy())

for index_got, index_expected in zip(got.index, expected.index):
assert index_got == index_expected

np.testing.assert_array_equal(got.to_numpy(), expected.to_numpy())
else:
assert got == expected

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authors = [
requires-python = ">=3.9"
dependencies = [
'numpy >= 1.19.3',
'pandas >= 1.4.0',
'pandas >= 1.3.0',
'pytz',
'requests',
'scipy >= 1.6.0',
Expand Down
Loading
0