Open alanzhanglei opened 2 years ago
Traceback (most recent call last): File "D:\programs\anaconda3\envs\py39tst\lib\site-packages\olapy\core\mdx\executor\cube_loader_custom.py", line 51, in load_tables df = df[list(dimension["columns"].keys())] AttributeError: 'list' object has no attribute 'keys'
dimensions = [{'name': 'mems', 'displayName': 'mems', 'columns': [{'name': 'mem_id'}, {'name': 'age'}, {'name': 'name', 'column_new_name': 'full_name'}]
should update
df = df[list(dimension["columns"].keys())]
to
df[[col['name'] for col in dimension["columns"]]]
Traceback (most recent call last): File "D:\programs\anaconda3\envs\py39tst\lib\site-packages\olapy\core\mdx\executor\cube_loader_custom.py", line 51, in load_tables df = df[list(dimension["columns"].keys())] AttributeError: 'list' object has no attribute 'keys'
dimensions = [{'name': 'mems', 'displayName': 'mems', 'columns': [{'name': 'mem_id'}, {'name': 'age'}, {'name': 'name', 'column_new_name': 'full_name'}]
should update
to