Skip to content

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

@blokhin

Description

@blokhin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions