Код: Выделить всё
df = pl.DataFrame(noisy_data.tolist(), columns=[f"property_{i}" for i in range(num_columns)])
Код: Выделить всё
TypeError: DataFrame.__init__() got an unexpected keyword argument 'columns'
Код: Выделить всё
class polars.DataFrame(
data: FrameInitTypes | None = None,
schema: SchemaDefinition | None = None,
*,
schema_overrides: SchemaDict | None = None,
strict: bool = True,
orient: Orientation | None = None,
infer_schema_length: int | None = 100,
nan_to_null: bool = False,
)
Подробнее здесь: https://stackoverflow.com/questions/782 ... rom-a-list
Мобильная версия