File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ filterwarnings = [
12
12
" error" ,
13
13
" default::pytest.PytestWarning" ,
14
14
" default::DeprecationWarning:distributed" ,
15
+ # Pyarrow emits a warning regarding use of deprecated Pandas function
16
+ # Remove this once we bump Pyarrow version
17
+ " ignore:Passing a BlockManager to DataFrame is deprecated:DeprecationWarning"
15
18
]
16
19
17
20
[tool .ruff ]
Original file line number Diff line number Diff line change @@ -569,7 +569,7 @@ def test_dataframe_fillna(self):
569
569
tm .assert_frame_equal (df , df_copy )
570
570
571
571
# update the value in the original dataframe to match what we expect on read-back
572
- df [ "v" ] [4 ] = - 1
572
+ df . loc [4 ] = - 1
573
573
df_bk = tiledb .open_dataframe (uri )
574
574
tm .assert_frame_equal (df_bk , df )
575
575
@@ -941,7 +941,7 @@ def test_csv_fillna(self):
941
941
942
942
def check_array (path , df ):
943
943
# update the value in the original dataframe to match what we expect on read-back
944
- df [ "v" ] [4 ] = 0
944
+ df . loc [4 ] = 0
945
945
946
946
df_bk = tiledb .open_dataframe (path )
947
947
tm .assert_frame_equal (df_bk , df )
@@ -969,7 +969,7 @@ def check_array(path, df):
969
969
# Test roundtrip a Int64Dtype in newer pandas versions
970
970
tmp_csv2 = os .path .join (tmp_dir , "generated.csv" )
971
971
df2 = pd .DataFrame ({"v" : pd .Series (np .int64 (df ["v" ]), dtype = pd .Int64Dtype ())})
972
- df2 [ "v" ] [4 ] = None
972
+ df2 . loc [4 ] = None
973
973
974
974
with tiledb .FileIO (self .vfs , tmp_csv2 , "wb" ) as fio :
975
975
df2 .to_csv (fio , index = False )
You can’t perform that action at this time.
0 commit comments