polars.internals.series.struct.StructNameSpace.rename_fields#

StructNameSpace.rename_fields(names: list[str]) Series[source]#

Rename the fields of the struct.

Parameters:
names

New names in the order of the struct’s fields