-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
AttributeError: 'Hour' object has no attribute 'normalize' when masking a time series #7748
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
Comments
when/how did you create the pickle? e.g. in a prior version, which one? |
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 |
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
|
It is a bit slow due to |
you can try this:
|
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 |
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. |
because something odd changed in the way DataFrames get pickled into HDF5. The only change I made to fix the problem was to re-create our synthetic datasets (in nilmtk/data) using Pandas 0.14.1 and all is fine again. See pandas-dev/pandas#7748
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
The text was updated successfully, but these errors were encountered: