Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Fix DataFrame._data deprecated warnings #793

Merged
merged 11 commits into from
Aug 19, 2024
5 changes: 2 additions & 3 deletions CI/test_basic_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@


def test_basic_cases():
with warnings.catch_warnings():
# TODO: change warnings.simplefilter("error") to "module"
with warnings.catch_warnings():
# "error" help us find the deprecated APIs
warnings.simplefilter("module")
warnings.simplefilter("error")
import xorbits
import xorbits.pandas as pd
import xorbits.numpy as np
Expand Down
2 changes: 1 addition & 1 deletion python/xorbits/_mars/_utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ cdef list tokenize_pandas_series(ob):


cdef list tokenize_pandas_dataframe(ob):
l = [block.values for block in ob._data.blocks]
l = [block.values for block in ob._mgr.blocks]
l.extend([ob.columns, ob.index])
return iterative_tokenize(l)

Expand Down
Loading