-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
It would be useful to have a frame property that returns the list of columns with unwrapped nested column names in the following format: {base_column}.{col_name}
. In LSDB we are already doing this unwrapping of column names to specify columns to load, default columns, etc:
all_columns = self._ddf._meta.all_columns
base_columns = all_columns.pop("base", [])
nonnested_basecols = [c for c in base_columns if c not in self._ddf._meta.nested_columns]
loading_columns = [
[f"{base_name}.{col}" for col in all_columns[base_name]] for base_name in all_columns
]
columns = nonnested_basecols + [c for cs in loading_columns for c in cs]
We will need to use it more broadly in other contexts (e.g. in astronomy-commons/lsdb#1029) so it would be better to have it done upstream.
Metadata
Metadata
Assignees
Labels
No labels