From c6ff73ce21d767669dd012b44e4ac4785488ad5b Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Tue, 25 Feb 2025 09:57:34 +0530 Subject: [PATCH] DOC: fix ES01 for pandas.DataFrame.astype --- pandas/core/generic.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ccd801e252f2c..81fefe8b8f999 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6267,6 +6267,11 @@ def astype( """ Cast a pandas object to a specified dtype ``dtype``. + This method allows the conversion of the data types of pandas objects, + including DataFrames and Series, to the specified dtype. It supports casting + entire objects to a single data type or applying different data types to + individual columns using a mapping. + Parameters ---------- dtype : str, data type, Series or Mapping of column name -> data type