Skip to content

Commit 6b0e8d0

Browse files
Fix cases
Co-authored-by: Yvonne Fröhlich <[email protected]>
1 parent a65f6ae commit 6b0e8d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/clib/conversion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ def _to_numpy(data: Any) -> np.ndarray:
163163
}
164164

165165
# 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
167167
# 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
168168
# Here are the workarounds for pandas < 2.2.
169169
# Following SPEC 0, pandas 2.1 should be dropped in 2025 Q3, so it's likely we can
170170
# remove the workaround in PyGMT v0.17.0.
171171
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
173173
dtypes.update(
174174
{
175175
"Int8": np.int8,
@@ -184,7 +184,7 @@ def _to_numpy(data: Any) -> np.ndarray:
184184
"Float64": np.float64,
185185
}
186186
)
187-
# For pandas.Index/pandas.Series, pandas/pyarrow integer dtypes with missing
187+
# For pandas.Index/pandas.Series, pandas/PyArrow integer dtypes with missing
188188
# values should be cast to NumPy float dtypes and NaN is used as missing value
189189
# indicator.
190190
if getattr(data, "hasnans", False): # pandas.Index/pandas.Series has 'hasnans'

0 commit comments

Comments
 (0)