Skip to content

Commit 6f158cb

Browse files
committed
update infer_dtype docstring with decimal example
1 parent cc9ac39 commit 6f158cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/_libs/src/inference.pyx

+4
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def infer_dtype(object value):
243243
- integer
244244
- mixed-integer
245245
- mixed-integer-float
246+
- decimal
246247
- complex
247248
- categorical
248249
- boolean
@@ -286,6 +287,9 @@ def infer_dtype(object value):
286287
>>> infer_dtype(['a', 1])
287288
'mixed-integer'
288289
290+
>>> infer_dtype([Decimal(1), Decimal(2.0)])
291+
'decimal'
292+
289293
>>> infer_dtype([True, False])
290294
'boolean'
291295

0 commit comments

Comments
 (0)