partd
partd copied to clipboard
create_block_manager_from_blocks and passing a BlockManager to DataFrame are deprecated in pandas 2.2.0
running the following on Pandas 2.2.0.dev0+394.g820d5a902f:
import pandas as pd
from partd import File, PandasColumns, PandasBlocks
p = PandasBlocks(File("foo"))
p.append({'x': pd.DataFrame({'x': [1]})})
p.get('x')
results in the following warnings:
$ python -Wall demo.py
/home/graingert/mambaforge/envs/partd/lib/python3.12/site-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
EPOCH = datetime.datetime.utcfromtimestamp(0)
/home/graingert/projects/partd/partd/pandas.py:6: DeprecationWarning: create_block_manager_from_blocks is deprecated and will be removed in a future version. Use public APIs instead.
from pandas.core.internals import create_block_manager_from_blocks, make_block
/home/graingert/projects/partd/partd/pandas.py:6: DeprecationWarning: create_block_manager_from_blocks is deprecated and will be removed in a future version. Use public APIs instead.
from pandas.core.internals import create_block_manager_from_blocks, make_block
/home/graingert/projects/partd/partd/pandas.py:198: DeprecationWarning: Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.
return pd.DataFrame(create_block_manager_from_blocks(blocks, axes))
/home/graingert/projects/partd/partd/pandas.py:198: DeprecationWarning: Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.
return pd.DataFrame(create_block_manager_from_blocks(blocks, axes))
/home/graingert/projects/partd/partd/pandas.py:198: DeprecationWarning: Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.
return pd.DataFrame(create_block_manager_from_blocks(blocks, axes))