From b0e892ae692fced62a4b53dcf22319b6fd0f0b90 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Mon, 10 Feb 2025 15:00:02 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.api.types.infer_dtype --- pandas/_libs/lib.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 5239aa2c61dc5..fce51700d623f 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1522,6 +1522,11 @@ def infer_dtype(value: object, skipna: bool = True) -> str: """ Return a string label of the type of a scalar or list-like of values. + This method inspects the elements of the provided input and determines + classification of its data type. It is particularly useful for + handling heterogeneous data inputs where explicit dtype conversion may not + be possible or necessary. + Parameters ---------- value : scalar, list, ndarray, or pandas type