Skip to content

Commit 724c6d2

Browse files
trexfeatherspp-mo
authored andcommitted
libnetcdf <4.9 pin (SciTools#5242)
* Pin libnetcdf<4.9 and update lock files. * What's New entry. * libnetcdf not available on PyPI. * Fix for Pandas v2.0. * Fix for Pandas v2.0.
1 parent 8235d60 commit 724c6d2

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

docs/src/whatsnew/latest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ This document explains the changes made to Iris for this release
116116
🔗 Dependencies
117117
===============
118118

119-
#. N/A
119+
#. `@trexfeathers`_ introduced the ``libnetcdf <4.9`` pin. (:pull:`5242`)
120120

121121

122122
📚 Documentation

lib/iris/pandas.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,13 @@ def as_cubes(
345345
... var_name="longitude",
346346
... value_name="air_temperature"
347347
... )
348+
>>> my_df["longitude"] = my_df["longitude"].infer_objects()
348349
>>> print(my_df)
349-
latitude longitude air_temperature
350-
0 35 0 300
351-
1 25 0 301
352-
2 35 10 302
353-
3 25 10 303
350+
latitude longitude air_temperature
351+
0 35 0 300
352+
1 25 0 301
353+
2 35 10 302
354+
3 25 10 303
354355
>>> my_df = my_df.set_index(["latitude", "longitude"])
355356
>>> my_df = my_df.sort_index()
356357
>>> converted_cube = as_cubes(my_df)[0]

requirements/py310.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- cf-units >=3.1
1616
- cftime >=1.5
1717
- dask-core >=2022.9.0
18+
- libnetcdf <4.9
1819
- matplotlib >=3.5
1920
- netcdf4
2021
- libnetcdf<4.9

requirements/py38.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- cf-units >=3.1
1616
- cftime >=1.5
1717
- dask-core >=2022.9.0
18+
- libnetcdf <4.9
1819
- matplotlib >=3.5
1920
- netcdf4
2021
- libnetcdf<4.9

requirements/py39.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- cf-units >=3.1
1616
- cftime >=1.5
1717
- dask-core >=2022.9.0
18+
- libnetcdf <4.9
1819
- matplotlib >=3.5
1920
- netcdf4
2021
- libnetcdf<4.9

0 commit comments

Comments
 (0)