We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 840cb1f commit d246fe7Copy full SHA for d246fe7
pandas/core/generic.py
@@ -6267,6 +6267,11 @@ def astype(
6267
"""
6268
Cast a pandas object to a specified dtype ``dtype``.
6269
6270
+ This method allows the conversion of the data types of pandas objects,
6271
+ including DataFrames and Series, to the specified dtype. It supports casting
6272
+ entire objects to a single data type or applying different data types to
6273
+ individual columns using a mapping.
6274
+
6275
Parameters
6276
----------
6277
dtype : str, data type, Series or Mapping of column name -> data type
0 commit comments