We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc9ac39 commit 6f158cbCopy full SHA for 6f158cb
pandas/_libs/src/inference.pyx
@@ -243,6 +243,7 @@ def infer_dtype(object value):
243
- integer
244
- mixed-integer
245
- mixed-integer-float
246
+ - decimal
247
- complex
248
- categorical
249
- boolean
@@ -286,6 +287,9 @@ def infer_dtype(object value):
286
287
>>> infer_dtype(['a', 1])
288
'mixed-integer'
289
290
+ >>> infer_dtype([Decimal(1), Decimal(2.0)])
291
+ 'decimal'
292
+
293
>>> infer_dtype([True, False])
294
'boolean'
295
0 commit comments