Also, I don't know if this is useful information but it seems to happen with every data type in the source dataframe (int, float, datetime, etc...) Expected behavior merge operation successfully completed Installed versions ---Version info--- Polars: 1.19.0 Index type: UInt32 Platform: W...
更改pandas中date-time列的时区,并添加为分层索引 、、、 我有UTC时间戳的数据。我想将这个时间戳的时区转换为‘美国/太平洋’,并将其作为层次索引添加到pandas DataFrame中。>>> import pandas as pd >>> dat = pd.DataFrame({'label':['a', 'a', 'a', 'b', 'b', 'b'], 'dat 浏览0提问于2013...
The test failure seems to be because that to_pandas of polars requires pyarrow as well: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.to_pandas.html, should we just skip the tests of polars when pyarrow is not installed, or try find a workaround? adrinjal...
nan_to_null=True stops converting nans to nulls after the dataframe grows to a certain size. This did not happen in polars==0.20.10 Expected behavior nan_to_null=True should behave exactly as pl.from_pandas().with_columns(cs.float().fill_nan(None)) Installed versions ---Version info...
Converting to Lance importlanceimportpandasaspdimportpyarrowaspaimportpyarrow.datasetdf=pd.DataFrame({"a": [5],"b": [10]})uri="/tmp/test.parquet"tbl=pa.Table.from_pandas(df)pa.dataset.write_dataset(tbl,uri,format='parquet')parquet=pa.dataset.dataset(uri,format='parquet')lance.write_dataset...
Converting to Lance import lance import pandas as pd import pyarrow as pa import pyarrow.dataset df = pd.DataFrame({"a": [5], "b": [10]}) uri = "/tmp/test.parquet" tbl = pa.Table.from_pandas(df) pa.dataset.write_dataset(tbl, uri, format='parquet') parquet = pa.dataset.dataset...