Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
AttributeError: 'Hour' object has no attribute 'normalize' when masking a time series #7748
Comments
|
when/how did you create the pickle? e.g. in a prior version, which one? |
leroygr
commented
Jul 14, 2014
|
df_pickle.pkl is created using pandas 0.14.1. However, the raw data in the pickle file are results of calculations done on data originally stored in HDF5 (created with pandas 0.12). |
|
can you show the original creation of the |
leroygr
commented
Jul 14, 2014
|
Not really because this is an output of several steps impossible to show here... FYI, I just downgraded to pandas 0.13.1 and the issue above doesn't appear anymore. Do you think all this could be due to the raw data loaded from HDF5 generated with pandas 0.12? |
|
prob has to do with the pickling of the
|
leroygr
commented
Jul 14, 2014
|
It is a bit slow due to |
|
you can try this:
|
leroygr
commented
Jul 14, 2014
|
It worked! Thanks a lot! |
|
gr8. this is not a bug per-se, more of a slightly change in the compat of frequencies in terms of backward-compat for pickle. Not a whole lot I think can do about this. cc @sinhrks, maybe change these to |
jreback
added the
Compat
label
Jul 14, 2014
jreback
added this to the
0.15.0
milestone
Jul 14, 2014
armaganthis3
referenced
this issue
Jul 14, 2014
Closed
GH6848 silently changed series.sort from stable to unstable sort #7750
|
Yes, will do. Another option is to add normalize as class variable also. Which looks better? |
|
hmm, a class variable might be more clear. As long as validation for the user passed parm. |
sinhrks
referenced
this issue
Jul 18, 2014
Merged
BUG/COMPAT: pickled dtindex with freq raises AttributeError in normalize... #7789
jreback
closed this
in #7789
Jul 19, 2014
JackKelly
added a commit
to nilmtk/nilmtk
that referenced
this issue
Jul 25, 2014
|
|
JackKelly |
1bd682d
|
leroygr commentedJul 14, 2014
Hi All,
I have a strange bug when I want to mask values of a time series (that I get from a pickled Panel).
I have the following Series:
And I have an exception when I try to mask it:
If I make the same Series manually, it is working:
I really don't understand why...
You can find the pickle file here: http://we.tl/lrsFvmanVl
Thanks,
Greg
Here is the show_version output:
INSTALLED VERSIONS
commit: None
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.8.0-37-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.14.1
nose: 1.3.0
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.13.3
statsmodels: 0.6.0.dev-Unknown
IPython: 1.1.0
sphinx: 1.1.3
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.4
bottleneck: 0.6.0
tables: 3.1.1
numexpr: 2.0.1
matplotlib: 1.3.1
openpyxl: 1.7.0
xlrd: 0.9.2
xlwt: 0.7.2
xlsxwriter: None
lxml: 3.0.0
bs4: 4.3.2
html5lib: None
httplib2: 0.7.2
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None