-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN, TYP: Factor out part of info #34092
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
return str(s)[:space].ljust(space) | ||
|
||
|
||
def _get_ids_and_dtypes(data: FrameOrSeries) -> Tuple["Index", "Series"]: |
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.
where is this useful?
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.
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.
ok, please add a doc-string
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.
@MarcoGorelli ok, some comments, ping on green.
|
||
def _put_str(s, space): | ||
|
||
def _put_str(s: Union[str, Dtype], space: int) -> str: |
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.
can you add a doc-string
return str(s)[:space].ljust(space) | ||
|
||
|
||
def _get_ids_and_dtypes(data: FrameOrSeries) -> Tuple["Index", "Series"]: |
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.
ok, please add a doc-string
@jreback ping |
thanks @MarcoGorelli |
Precursor to #31796, which still has a rather large diff. This should help make it easier to read.
On master,
cols
holds the DataFrame's columns. If we were to use this method on a Series, then it would hold an Index containing the Series' name (Index([data.name])
). Is there a good name for a variable that could store either? At the moment I've called itids