-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: cleanup libs cimports, remove is_timestamp #18663
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
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.
looks fine. some comments to add to the list (or you can fix here). ping on green.
@@ -22,8 +22,7 @@ | |||
from pandas.core.base import SpecificationError, AbstractMethodError | |||
from pandas.errors import UnsupportedFunctionCall | |||
from pandas.core.groupby import DataError | |||
from pandas._libs.tslibs.resolution import DAYS | |||
from pandas.tseries.frequencies import MONTHS | |||
from pandas._libs.tslibs.resolution import DAYS, _MONTHS as MONTHS |
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.
should fix this this naming mistmacth in resolution (add to list)
@@ -26,7 +26,7 @@ | |||
from pandas._libs.tslibs.resolution import (Resolution, | |||
_FrequencyInferer, | |||
_TimedeltaFrequencyInferer) | |||
from pandas._libs.tslibs.parsing import _get_rule_month | |||
from pandas._libs.tslibs.parsing import _get_rule_month, _MONTH_NUMBERS |
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.
same here, you can de-privatize these constants
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.
I think the game plan is to consolidate the several versions of these in ccalendar once it is merged.
rebase and something failing |
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.
rebase (and you can now use ccalendar)
@@ -96,6 +81,11 @@ try: | |||
except NameError: | |||
basestring = str | |||
|
|||
cdef extern from "src/numpy_helper.h": | |||
object sarr_from_data(cnp.dtype, int length, void* data) | |||
void transfer_object_column(char *dst, char *src, size_t stride, |
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.
if not let's create one (and deprecate in 0.22)
Huh the appveyor error is at build-time complaining "unresolved external symbol strcasecmp". But that particular cimport isn't changed. |
Codecov Report
@@ Coverage Diff @@
## master #18663 +/- ##
==========================================
- Coverage 91.59% 91.55% -0.04%
==========================================
Files 153 153
Lines 51257 51254 -3
==========================================
- Hits 46949 46927 -22
- Misses 4308 4327 +19
Continue to review full report at Codecov.
|
thanks! |
_libs.parsers
, including some unusedutil.is_contiguous
tslib.is_timestamp
(will be helpful for eventual goal of "fixing" Timestamp classmethods)