File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,13 @@ def _to_numpy(data: Any) -> np.ndarray:
163
163
}
164
164
165
165
# pandas numeric dtypes were converted to np.object_ dtype prior pandas 2.2, and are
166
- # converted to suitable numpy dtypes since pandas 2.2. Refer to the following link
166
+ # converted to suitable NumPy dtypes since pandas 2.2. Refer to the following link
167
167
# for details: https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#to-numpy-for-numpy-nullable-and-arrow-types-converts-to-suitable-numpy-dtype
168
168
# Here are the workarounds for pandas < 2.2.
169
169
# Following SPEC 0, pandas 2.1 should be dropped in 2025 Q3, so it's likely we can
170
170
# remove the workaround in PyGMT v0.17.0.
171
171
if Version (pd .__version__ ) < Version ("2.2" ):
172
- # Specify mapping from pandas nullable dtypes to suitable numpy dtypes
172
+ # Specify mapping from pandas nullable dtypes to suitable NumPy dtypes
173
173
dtypes .update (
174
174
{
175
175
"Int8" : np .int8 ,
@@ -184,7 +184,7 @@ def _to_numpy(data: Any) -> np.ndarray:
184
184
"Float64" : np .float64 ,
185
185
}
186
186
)
187
- # For pandas.Index/pandas.Series, pandas/pyarrow integer dtypes with missing
187
+ # For pandas.Index/pandas.Series, pandas/PyArrow integer dtypes with missing
188
188
# values should be cast to NumPy float dtypes and NaN is used as missing value
189
189
# indicator.
190
190
if getattr (data , "hasnans" , False ): # pandas.Index/pandas.Series has 'hasnans'
You can’t perform that action at this time.
0 commit comments