Skip to content

DEPR: provide deprecations and exposure for NaTType #16146

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
Apr 27, 2017

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Apr 26, 2017

xref #16137

@jreback jreback added the Deprecate Functionality to remove in pandas label Apr 26, 2017
@jreback jreback added this to the 0.20.0 milestone Apr 26, 2017
@codecov
Copy link

codecov bot commented Apr 26, 2017

Codecov Report

Merging #16146 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16146   +/-   ##
=======================================
  Coverage   90.83%   90.83%           
=======================================
  Files         159      159           
  Lines       50796    50796           
=======================================
  Hits        46143    46143           
  Misses       4653     4653
Flag Coverage Δ
#multiple 88.62% <ø> (ø) ⬆️
#single 40.31% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/tslib.py 100% <ø> (ø) ⬆️
pandas/__init__.py 92.3% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b80ed3...cd2d9ce. Read the comment docs.

@TomAugspurger
Copy link
Contributor

Currently, under the main module privacy changes table we have

  • The function union_categoricals() is now importable from pandas.api.types, formerly from pandas.types.concat (GH15998)

Do you want to add an entry for NaTTYpe is not importable from pandas.api.types?

@jreback
Copy link
Contributor Author

jreback commented Apr 26, 2017

Do you want to add an entry for NaTTYpe is not importable from pandas.api.types?
sure

@jreback jreback merged commit 669973a into pandas-dev:master Apr 27, 2017
@jorisvandenbossche
Copy link
Member

@jreback Have you seen the comment of @shoyer on the issue?

The right way to use this going forward is probably type(pd.NaT). I'm not sure what the point of exposing NaTType is, given that it's a singleton. Python 2 had types.NoneType but they removed it in Python 3.

I think that makes sense, and thus it is maybe not needed to expose this publicly (we can also say to use that in the deprecation message)

@jreback
Copy link
Contributor Author

jreback commented Apr 27, 2017

if u look at the PR that's exactly what i did

@jreback
Copy link
Contributor Author

jreback commented Apr 27, 2017

it's in the deprecation message

@@ -77,6 +77,7 @@
moved={'Timestamp': 'pandas.Timestamp',
'Timedelta': 'pandas.Timedelta',
'NaT': 'pandas.NaT',
'NaTType': 'type(pandas.NaT)',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jorisvandenbossche
Copy link
Member

Whoops :-)
That's what you get from rebasing instead of adding a new commit, as there was no notification of a change, I supposed it was the original state that was merged :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants