Skip to content

CLN: remove the circular import in NDFrame.dtypes #35128

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

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

MarcoGorelli
Copy link
Member

  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

@MarcoGorelli MarcoGorelli requested a review from jbrockmendel July 5, 2020 13:10

return Series(self._mgr.get_dtypes(), index=self._info_axis, dtype=np.object_)
data = self._mgr.get_dtypes()
return self._constructor_sliced(data, index=self._info_axis, dtype=np.object_)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this overriden by Series?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in frame.py -

_constructor_sliced: Type[Series] = Series

And for Series the dtypes property is overridden

@WillAyd WillAyd added the Clean label Jul 6, 2020
@WillAyd
Copy link
Member

WillAyd commented Jul 6, 2020

lgtm. doc build failure looks unrelated but restarted to be sure

@mroeschke mroeschke added this to the 1.1 milestone Jul 7, 2020
@mroeschke mroeschke merged commit a207fb1 into pandas-dev:master Jul 7, 2020
@mroeschke
Copy link
Member

Thanks @MarcoGorelli

@MarcoGorelli MarcoGorelli deleted the cln-dtypes branch July 7, 2020 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants