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

*Fields* vs. *columns* usage can be misleading #14

Open
blokhin opened this issue Jun 10, 2022 · 0 comments
Open

*Fields* vs. *columns* usage can be misleading #14

blokhin opened this issue Jun 10, 2022 · 0 comments

Comments

@blokhin
Copy link
Member

blokhin commented Jun 10, 2022

client.get_dataframe({"classes": "binary", "years": "2010-2020"}, fields={'S':["phase_id", "entry", "chemical_formula", "superconducting_transition_temperature"]})

leads to

construction.py:985, in _finalize_columns_and_data(content, columns, dtype) 982 columns = _validate_or_indexify_columns(contents, columns) 983 except AssertionError as err: 984 # GH#26429 do not raise user-facing AssertionError --> 985 raise ValueError(err) from err 987 if len(contents) and contents[0].dtype == np.object_: 988 contents = _convert_object_array(contents, dtype=dtype) ValueError: 7 columns passed, passed data had 4 columns

reported by @ltalirz

@issuelabeler issuelabeler bot added the data data layout requests label Jun 10, 2022
@blokhin blokhin removed the data data layout requests label Jun 10, 2022
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