-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
for gh-49508 changing Doc for DataFrame.astype #49556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
added the series in input in the doc of DataFrame.astype
pandas/core/generic.py
Outdated
column label and dtype is a numpy.dtype or Python type to cast one | ||
or more of the DataFrame's columns to column-specific types. | ||
dtype : string, data type, Series or Mapping of column name -> data type | ||
Use a data type like object (string, numpy.dtype, pandas.ExtensionDtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a data type like object (string, numpy.dtype, pandas.ExtensionDtype | |
Use a string, numpy.dtype, pandas.ExtensionDtype |
pandas/core/generic.py
Outdated
or more of the DataFrame's columns to column-specific types. | ||
dtype : string, data type, Series or Mapping of column name -> data type | ||
Use a data type like object (string, numpy.dtype, pandas.ExtensionDtype | ||
or Python type) to cast entire pandas object to the same type. Alternatively, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or Python type) to cast entire pandas object to the same type. Alternatively, | |
or Python type to cast entire pandas object to the same type. Alternatively, |
pandas/core/generic.py
Outdated
dtype : string, data type, Series or Mapping of column name -> data type | ||
Use a data type like object (string, numpy.dtype, pandas.ExtensionDtype | ||
or Python type) to cast entire pandas object to the same type. Alternatively, | ||
use {col: dtype, ...}, where col is a column label and dtype is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use {col: dtype, ...}, where col is a column label and dtype is a | |
use a mapping, e.g. {col: dtype, ...}, where col is a column label and dtype is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also appears to be some code check failures
Thanks I'll fix them up |
Done the changes sir |
Looks to be some validation errors:
|
Sir I didn't understand how can a validation error come from line 5999 when I did not even change the line, seems strange. |
This is a shared docstring so it's used by 2 other functions. I think |
thanls sir done the changes |
Thanks @ramvikrams |
Thank you sir for your help all along |
…49556) * for pandas-dev#49508 changing Doc for DataFrame.astype added the series in input in the doc of DataFrame.astype * up * up2 * up3 * up4 * up5
…49556) * for pandas-dev#49508 changing Doc for DataFrame.astype added the series in input in the doc of DataFrame.astype * up * up2 * up3 * up4 * up5
added the series in input in the doc of DataFrame.astype
closes #49508