Skip to content

Commit cee5347

Browse files
committed
Fix the doctest for different pandas string dtype representations
1 parent b97575d commit cee5347

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pygmt/datatypes/dataset.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,10 @@ def to_pandas(
239239
1 4.0 5.0 6.0 TEXT4 TEXT567
240240
2 7.0 8.0 9.0 TEXT8 TEXT90
241241
3 10.0 11.0 12.0 TEXT123 TEXT456789
242-
>>> df.dtypes.to_list()
243-
[dtype('float64'), dtype('float64'), dtype('float64'), string[python]]
242+
>>> df.dtypes.to_list()[0:3]
243+
[dtype('float64'), dtype('float64'), dtype('float64')]
244+
>>> df.dtypes["colstr"].name
245+
'string'
244246
"""
245247
vectors = []
246248
# Deal with numeric columns

0 commit comments

Comments
 (0)