Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
date_range treats '.5s' as '5s' #8419
Comments
|
these don't take fractional units ATM (I don't think was ever implemented). I don't think very difficult to fix. welcome to have a pull-request. |
jreback
added Enhancement Frequency
labels
Sep 29, 2014
jreback
added this to the
0.16
milestone
Sep 29, 2014
|
https://github.com/pydata/pandas/blob/master/pandas/tseries/frequencies.py#L97 I think this may have to do with the integer division when assigned values to a freq group. For example, if you also try .05s, it gets cut to 5S. I believe this is because of the (freq // 1000) operation used in grouping. Someone else might be able to correct me or give additional insights. Edit: jreback beat me to it. I might look into this tonight as it seems like it would be interesting, but simple. No promises though. |
|
@jbradish sounds great! basically you need to patch |
jreback
modified the milestone: 0.16, 0.15.1
Oct 7, 2014
jreback
modified the milestone: 0.16.0, Next Major Release
Mar 6, 2015
jreback
added the
Resample
label
Jul 15, 2015
|
I think fix should be 2 parts: 1.
|
jreback
added Difficulty Intermediate Effort Low
labels
Oct 7, 2016
jisantuc
added a commit
to jisantuc/pandas
that referenced
this issue
Oct 8, 2016
|
|
jisantuc |
b869a30
|
jisantuc
referenced
this issue
Oct 8, 2016
Merged
BUG: Convert float freqstrs to ints at finer resolution #14378
jisantuc
added a commit
to jisantuc/pandas
that referenced
this issue
Oct 11, 2016
|
|
jisantuc |
33664a6
|
jisantuc
added a commit
to jisantuc/pandas
that referenced
this issue
Oct 27, 2016
|
|
jisantuc |
47723c3
|
jorisvandenbossche
modified the milestone: 0.20.0, Next Major Release
Dec 14, 2016
jorisvandenbossche
closed this
in #14378
Dec 14, 2016
jorisvandenbossche
added a commit
that referenced
this issue
Dec 14, 2016
|
|
jisantuc + jorisvandenbossche |
8b89ece
|
ischurov
added a commit
to ischurov/pandas
that referenced
this issue
Dec 19, 2016
|
|
jisantuc + ischurov |
c386806
|
keszybz commentedSep 29, 2014
I'm new to pandas, so maybe I'm missing something, but I'd expected freq='.5s' to give me 500ms intervals, not 5s intervals:
Behaviour is the same under Python 2 and 3.