Skip to content

Arrays must all be same length #3

Description

@Nick8197

Hello I am getting this error after running driver.py with my login

Traceback (most recent call last):
File "driver/run.py", line 47, in
my_port = query.user_portfolio()
File "src/query.py", line 157, in user_portfolio
return Portfolio(self, quotes, 'User Portfolio')
File "src/models/portfolio.py", line 56, in init
self.update_assets()
File "src/models/portfolio.py", line 78, in update_assets
market_data = self.get_market_data_tuple()
File "src/models/portfolio.py", line 276, in get_market_data_tuple
df = pd.DataFrame(historicals)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 348, in init
mgr = self._init_dict(data, index, columns, dtype=dtype)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 459, in _init_dict
return _arrays_to_mgr(arrays, data_names, index, columns, dtype=dtype)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 7356, in _arrays_to_mgr
index = extract_index(arrays)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/core/frame.py", line 7402, in extract_index
raise ValueError('arrays must all be same length')
ValueError: arrays must all be same length

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions