Skip to content

Commit 705aa4a

Browse files
committed
No need to use pd.api.types.is_string_dtype anymore
1 parent 2abe860 commit 705aa4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ def virtualfile_from_vectors(self, *vectors):
13781378
# Assumes that first 2 columns contains coordinates like longitude
13791379
# latitude, or datetime string types.
13801380
for col, array in enumerate(arrays[2:]):
1381-
if pd.api.types.is_string_dtype(array.dtype):
1381+
if array.dtype.type == np.str_:
13821382
columns = col + 2
13831383
break
13841384

0 commit comments

Comments
 (0)