datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 310 forks source link

error type raised by pandas has changed #549

Closed tobyhodges closed 1 year ago

tobyhodges commented 1 year ago

In Data Types and Formats, section Missing Data Values - NaN, the error type mentioned as being raised has changed. The episode text currently states:

Notice that this throws a value error: ValueError: Cannot convert NA to integer.

but in recent versions of pandas the type of error thrown is much more specific pandas.errors.IntCastingError: Cannot convert non-finite values (NA or inf) to integer

The episode should be updated to reflect this.