Skip to content

Use pandas_datetimestruct instead of date_info #19874

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 6 commits into from
Feb 25, 2018

Conversation

jbrockmendel
Copy link
Member

Changes test file name from previous pass



cdef inline int max_value(int left, int right) nogil:
# Cython doesn't support "max(...)" in nogil blocks
Copy link
Contributor

Choose a reason for hiding this comment

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

this is defined in multiple places in the code add already

@codecov
Copy link

codecov bot commented Feb 24, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@e97be6f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #19874   +/-   ##
=========================================
  Coverage          ?   91.67%           
=========================================
  Files             ?      150           
  Lines             ?    48946           
  Branches          ?        0           
=========================================
  Hits              ?    44870           
  Misses            ?     4076           
  Partials          ?        0
Flag Coverage Δ
#multiple 90.05% <ø> (?)
#single 41.81% <ø> (?)

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 e97be6f...35e6c4d. Read the comment docs.

@jreback jreback added Datetime Datetime data dtype Period Period data type Clean labels Feb 24, 2018

if ordinal == iNaT:
return iNaT

if end:
retval = asfreq(ordinal, freq1, freq2, END)
Copy link
Contributor

Choose a reason for hiding this comment

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

use ? : or jut make the if/else include the function (simpler)


if retval == INT32_MIN:
raise ValueError('Frequency conversion failed')

return retval


cdef void get_asfreq_info(int from_freq, int to_freq,
char relation, asfreq_info *af_info) nogil:
cdef:
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add doc-strings


npy_int64 get_daytime_conversion_factor(int from_index, int to_index);
int max_value(int a, int b);
Copy link
Contributor

Choose a reason for hiding this comment

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

really? ok, need to fix this up later. too much duplicated floating around, but I guess when this is fully cythonized can remove this.

@jreback jreback added this to the 0.23.0 milestone Feb 25, 2018
@jreback jreback merged commit c1237f2 into pandas-dev:master Feb 25, 2018
@jreback
Copy link
Contributor

jreback commented Feb 25, 2018

thanks.

harisbal pushed a commit to harisbal/pandas that referenced this pull request Feb 28, 2018
@jbrockmendel jbrockmendel deleted the phelper16 branch June 22, 2018 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Datetime Datetime data dtype Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants