Skip to content
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

ValueError: All arrays must be of the same length #12

Open
qinxiaopang opened this issue Mar 14, 2024 · 0 comments
Open

ValueError: All arrays must be of the same length #12

qinxiaopang opened this issue Mar 14, 2024 · 0 comments

Comments

@qinxiaopang
Copy link

File "gsp_disaggregator.py", line 71, in
power_series, appliance_signatures = gsp.generate_appliance_powerseries(appliance_pairs, delta_p)
File "/home/qzx/nilm/gsp_support.py", line 210, in generate_appliance_powerseries
power_series[i] = pd.DataFrame({'timestamp':timeseq,'power':powerseq})
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 709, in init
mgr = dict_to_mgr(data, index, columns, dtype=dtype, copy=copy, typ=manager)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 481, in dict_to_mgr
return arrays_to_mgr(arrays, columns, index, dtype=dtype, typ=typ, consolidate=copy)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 115, in arrays_to_mgr
index = _extract_index(arrays)
File "/home/qzx/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 655, in _extract_index
raise ValueError("All arrays must be of the same length")
ValueError: All arrays must be of the same length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant