Skip to content

Commit

Permalink
No need to use pd.api.types.is_string_dtype anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Oct 13, 2024
1 parent 2abe860 commit 705aa4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ def virtualfile_from_vectors(self, *vectors):
# Assumes that first 2 columns contains coordinates like longitude
# latitude, or datetime string types.
for col, array in enumerate(arrays[2:]):
if pd.api.types.is_string_dtype(array.dtype):
if array.dtype.type == np.str_:
columns = col + 2
break

Expand Down

0 comments on commit 705aa4a

Please sign in to comment.