Skip to content

Commit 545c196

Browse files
Revert change in minimum pandas version
1 parent 14715ed commit 545c196

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

benchmarks/asv.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"python": "3.9",
117117
"build": "",
118118
"numpy": "1.19.5",
119-
"pandas": "1.4.0",
119+
"pandas": "1.3.0",
120120
"scipy": "1.6.0",
121121
// Note: these don't have a minimum in setup.py
122122
"h5py": "3.1.0",

ci/requirements-py3.10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- h5py
1010
- numba
1111
- numpy >= 1.17.3
12-
- pandas >= 1.4.0
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.11.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- h5py
1010
- numba
1111
- numpy >= 1.17.3
12-
- pandas >= 1.4.0
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.12.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- h5py
1010
- numba
1111
- numpy >= 1.17.3
12-
- pandas >= 1.4.0
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

ci/requirements-py3.9-min.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pip:
1515
- h5py==3.0.0
1616
- numpy==1.19.3
17-
- pandas==1.4.0 # min version of pvlib
17+
- pandas==1.3.0 # min version of pvlib
1818
- scipy==1.6.0
1919
- pytest-rerunfailures # conda version is >3.6
2020
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1

ci/requirements-py3.9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies:
99
- h5py
1010
- numba
1111
- numpy >= 1.17.3
12-
- pandas >= 1.4.0
12+
- pandas >= 1.3.0
1313
- pip
1414
- pytest
1515
- pytest-cov

docs/sphinx/source/whatsnew/v0.11.3.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Testing
2323

2424
Requirements
2525
~~~~~~~~~~~~
26-
* Minimum version of pandas advanced from 1.3.0 to 1.4.0. (:pull:`2341`)
2726

2827

2928
Contributors

pvlib/tests/test_tools.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,12 @@ def test_localize_to_utc(input, expected):
275275
got = tools.localize_to_utc(**input)
276276

277277
if isinstance(got, (pd.Series, pd.DataFrame)):
278-
# Older pandas versions have wonky dtype check on index.
278+
# Older pandas versions have wonky dtype equality check on timestamp
279+
# index, so check the values as numpy.ndarray and indices one by one.
280+
np.testing.assert_array_equal(got.to_numpy(), expected.to_numpy())
281+
279282
for index_got, index_expected in zip(got.index, expected.index):
280283
assert index_got == index_expected
281-
282-
np.testing.assert_array_equal(got.to_numpy(), expected.to_numpy())
283284
else:
284285
assert got == expected
285286

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ authors = [
1212
requires-python = ">=3.9"
1313
dependencies = [
1414
'numpy >= 1.19.3',
15-
'pandas >= 1.4.0',
15+
'pandas >= 1.3.0',
1616
'pytz',
1717
'requests',
1818
'scipy >= 1.6.0',

0 commit comments

Comments
 (0)