awkward_pandas.accessor.AwkwardAccessor.to_columns#
- AwkwardAccessor.to_columns(cull: bool = True, extract_all: bool = False, awkward_name: str = 'awkward-data') DataFrame [source]#
Extract columns from an awkward series
Where the series is a record type, each field may become a regular pandas column.
- Parameters:
cull (bool) – For those columns that we convert into regular ones, remove them from the original awkward series if True
extract_all (bool) – If False (default), only extract columns that can turn into normal pandas columns. If True, all columns will be extracted, but those that cannot be converted retain “awkward” type
awkward_name (str) – If there are leftover columns in the original series, in the resultant dataframe, these leftovers will get this column name
- Return type:
pd.DataFrame