Skip to content

CLN: Numpy compat functions namespace #39092

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 10 commits into from
Jan 21, 2021
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Jan 10, 2021

  • Ensure all linting tests pass, see here for how to run them

Should we do something about the private variables _np_version_under1p19 and _np_version_under1p20 too?

cc @jreback

@phofl phofl added the Clean label Jan 10, 2021
@jreback
Copy link
Contributor

jreback commented Jan 10, 2021

let's save this until we revert the numpy fixes

@phofl
Copy link
Member Author

phofl commented Jan 10, 2021

Sounds good, will fix the errors in the meantime. Will reopen when reverted

@phofl phofl closed this Jan 10, 2021
@phofl phofl reopened this Jan 19, 2021
@phofl
Copy link
Member Author

phofl commented Jan 19, 2021

Reopening since the other commit was reverted. Should we make _np_version_under1p19 and _np_version_under1p20 make non private to move them too?

@@ -15,8 +15,7 @@
from pandas._libs.tslib import Timestamp
from pandas._libs.tslibs import parsing
from pandas._libs.tslibs.parsing import parse_datetime_string
from pandas.compat import is_platform_windows
from pandas.compat.numpy import np_array_datetime64_compat
from pandas.compat import is_platform_windows, np_array_datetime64_compat
Copy link
Contributor

Choose a reason for hiding this comment

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

OT: we can prob remove this np_array_datetime64_compat it is pretty old stuff

@@ -10,7 +10,7 @@
from pandas._libs.tslibs.parsing import DateParseError
from pandas._libs.tslibs.period import INVALID_FREQ_ERR_MSG, IncompatibleFrequency
from pandas._libs.tslibs.timezones import dateutil_gettz, maybe_get_tz
from pandas.compat.numpy import np_datetime64_compat
from pandas.compat import np_datetime64_compat
Copy link
Contributor

Choose a reason for hiding this comment

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

this too (but just make a new issue for now)

@jreback jreback added this to the 1.3 milestone Jan 19, 2021
@jreback
Copy link
Contributor

jreback commented Jan 19, 2021

Reopening since the other commit was reverted. Should we make _np_version_under1p19 and _np_version_under1p20 make non private to move them too?

yes

@phofl
Copy link
Member Author

phofl commented Jan 19, 2021

Done, opened #39283

@jreback jreback merged commit b31c069 into pandas-dev:master Jan 21, 2021
@jreback
Copy link
Contributor

jreback commented Jan 21, 2021

thanks @phofl

@phofl phofl deleted the cln_numpy_compat branch January 21, 2021 20:18
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.

2 participants