Creating DataFrame from python list #16251
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
Unable to create DataFrame like Pandas.
Expected behavior
It should create dataframe like pandas.
Installed versions
-------Version info---------
Polars: 0.20.2
Index type: UInt32
Platform: Linux-6.1.58+-x86_64-with-glibc2.35
Python: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
----Optional dependencies----
adbc_driver_manager: 0.11.0
cloudpickle: 2.2.1
connectorx: 0.3.3
deltalake: 0.17.4
fsspec: 2023.6.0
gevent: 24.2.1
matplotlib: 3.7.1
numpy: 1.25.2
openpyxl: 3.1.2
pandas: 2.0.3
pyarrow: 14.0.2
pydantic: 2.7.1
pyiceberg: 0.6.1
pyxlsb:
sqlalchemy: 2.0.30
xlsx2csv: 0.8.2
xlsxwriter: 3.2.0
None
TypeError Traceback (most recent call last)
in <cell line: 8>()
6
7 # Create DataFrame with column names
----> 8 df = pl.DataFrame(data, columns=["A", "B", "C"])
9
10 print(df)
TypeError: DataFrame.init() got an unexpected keyword argument 'columns'
The text was updated successfully, but these errors were encountered: