@@ -1040,7 +1040,7 @@ def test_append_all_nans(self):
1040
1040
store .append ('df2' , df [10 :], dropna = False )
1041
1041
tm .assert_frame_equal (store ['df2' ], df )
1042
1042
1043
- # Test to make sure defaults are to not drop.
1043
+ # Test to make sure defaults are to not drop.
1044
1044
# Corresponding to Issue 9382
1045
1045
df_with_missing = DataFrame ({'col1' :[0 , np .nan , 2 ], 'col2' :[1 , np .nan , np .nan ]})
1046
1046
@@ -1059,7 +1059,7 @@ def test_append_all_nans(self):
1059
1059
1060
1060
with ensure_clean_path (self .path ) as path :
1061
1061
panel_with_missing .to_hdf (path , 'panel_with_missing' , format = 'table' )
1062
- reloaded_panel = read_hdf (path , 'panel_with_missing' )
1062
+ reloaded_panel = read_hdf (path , 'panel_with_missing' )
1063
1063
tm .assert_panel_equal (panel_with_missing , reloaded_panel )
1064
1064
1065
1065
def test_append_frame_column_oriented (self ):
@@ -2440,9 +2440,9 @@ def test_terms(self):
2440
2440
p4d = tm .makePanel4D ()
2441
2441
wpneg = Panel .fromDict ({- 1 : tm .makeDataFrame (), 0 : tm .makeDataFrame (),
2442
2442
1 : tm .makeDataFrame ()})
2443
- store .put ('wp' , wp , table = True )
2444
- store .put ('p4d' , p4d , table = True )
2445
- store .put ('wpneg' , wpneg , table = True )
2443
+ store .put ('wp' , wp , format = 'table' )
2444
+ store .put ('p4d' , p4d , format = 'table' )
2445
+ store .put ('wpneg' , wpneg , format = 'table' )
2446
2446
2447
2447
# panel
2448
2448
result = store .select ('wp' , [Term (
@@ -2607,7 +2607,7 @@ def test_same_name_scoping(self):
2607
2607
2608
2608
import pandas as pd
2609
2609
df = DataFrame (np .random .randn (20 , 2 ),index = pd .date_range ('20130101' ,periods = 20 ))
2610
- store .put ('df' , df , table = True )
2610
+ store .put ('df' , df , format = 'table' )
2611
2611
expected = df [df .index > pd .Timestamp ('20130105' )]
2612
2612
2613
2613
import datetime
@@ -3608,7 +3608,7 @@ def test_frame_select_complex(self):
3608
3608
df .loc [df .index [0 :4 ],'string' ] = 'bar'
3609
3609
3610
3610
with ensure_clean_store (self .path ) as store :
3611
- store .put ('df' , df , table = True , data_columns = ['string' ])
3611
+ store .put ('df' , df , format = 'table' , data_columns = ['string' ])
3612
3612
3613
3613
# empty
3614
3614
result = store .select ('df' , 'index>df.index[3] & string="bar"' )
@@ -3717,7 +3717,7 @@ def test_invalid_filtering(self):
3717
3717
df = tm .makeTimeDataFrame ()
3718
3718
3719
3719
with ensure_clean_store (self .path ) as store :
3720
- store .put ('df' , df , table = True )
3720
+ store .put ('df' , df , format = 'table' )
3721
3721
3722
3722
# not implemented
3723
3723
self .assertRaises (NotImplementedError , store .select , 'df' , "columns=['A'] | columns=['B']" )
0 commit comments