@@ -267,8 +267,8 @@ def _do_test(df, r_dtype=None, c_dtype=None,
267267
268268 with ensure_clean ('__tmp_to_csv_moar__' ) as path :
269269 df .to_csv (path , encoding = 'utf8' ,
270- chunksize = chunksize , tupleize_cols = False )
271- recons = self .read_csv (path , tupleize_cols = False , ** kwargs )
270+ chunksize = chunksize )
271+ recons = self .read_csv (path , ** kwargs )
272272 else :
273273 kwargs ['header' ] = 0
274274
@@ -542,35 +542,35 @@ def _make_frame(names=None):
542542
543543 # column & index are multi-index
544544 df = mkdf (5 , 3 , r_idx_nlevels = 2 , c_idx_nlevels = 4 )
545- df .to_csv (path , tupleize_cols = False )
546- result = read_csv (path , header = [0 , 1 , 2 , 3 ], index_col = [
547- 0 , 1 ], tupleize_cols = False )
545+ df .to_csv (path )
546+ result = read_csv (path , header = [0 , 1 , 2 , 3 ],
547+ index_col = [ 0 , 1 ])
548548 assert_frame_equal (df , result )
549549
550550 # column is mi
551551 df = mkdf (5 , 3 , r_idx_nlevels = 1 , c_idx_nlevels = 4 )
552- df .to_csv (path , tupleize_cols = False )
552+ df .to_csv (path )
553553 result = read_csv (
554- path , header = [0 , 1 , 2 , 3 ], index_col = 0 , tupleize_cols = False )
554+ path , header = [0 , 1 , 2 , 3 ], index_col = 0 )
555555 assert_frame_equal (df , result )
556556
557557 # dup column names?
558558 df = mkdf (5 , 3 , r_idx_nlevels = 3 , c_idx_nlevels = 4 )
559- df .to_csv (path , tupleize_cols = False )
560- result = read_csv (path , header = [0 , 1 , 2 , 3 ], index_col = [
561- 0 , 1 , 2 ], tupleize_cols = False )
559+ df .to_csv (path )
560+ result = read_csv (path , header = [0 , 1 , 2 , 3 ],
561+ index_col = [ 0 , 1 , 2 ])
562562 assert_frame_equal (df , result )
563563
564564 # writing with no index
565565 df = _make_frame ()
566- df .to_csv (path , tupleize_cols = False , index = False )
567- result = read_csv (path , header = [0 , 1 ], tupleize_cols = False )
566+ df .to_csv (path , index = False )
567+ result = read_csv (path , header = [0 , 1 ])
568568 assert_frame_equal (df , result )
569569
570570 # we lose the names here
571571 df = _make_frame (True )
572- df .to_csv (path , tupleize_cols = False , index = False )
573- result = read_csv (path , header = [0 , 1 ], tupleize_cols = False )
572+ df .to_csv (path , index = False )
573+ result = read_csv (path , header = [0 , 1 ])
574574 assert _all_none (* result .columns .names )
575575 result .columns .names = df .columns .names
576576 assert_frame_equal (df , result )
@@ -589,15 +589,15 @@ def _make_frame(names=None):
589589
590590 # whatsnew example
591591 df = _make_frame ()
592- df .to_csv (path , tupleize_cols = False )
593- result = read_csv (path , header = [0 , 1 ], index_col = [
594- 0 ], tupleize_cols = False )
592+ df .to_csv (path )
593+ result = read_csv (path , header = [0 , 1 ],
594+ index_col = [ 0 ] )
595595 assert_frame_equal (df , result )
596596
597597 df = _make_frame (True )
598- df .to_csv (path , tupleize_cols = False )
599- result = read_csv (path , header = [0 , 1 ], index_col = [
600- 0 ], tupleize_cols = False )
598+ df .to_csv (path )
599+ result = read_csv (path , header = [0 , 1 ],
600+ index_col = [ 0 ] )
601601 assert_frame_equal (df , result )
602602
603603 # column & index are multi-index (compatibility)
@@ -613,18 +613,17 @@ def _make_frame(names=None):
613613
614614 # invalid options
615615 df = _make_frame (True )
616- df .to_csv (path , tupleize_cols = False )
616+ df .to_csv (path )
617617
618618 for i in [6 , 7 ]:
619619 msg = 'len of {i}, but only 5 lines in file' .format (i = i )
620620 with tm .assert_raises_regex (ParserError , msg ):
621- read_csv (path , tupleize_cols = False ,
622- header = lrange (i ), index_col = 0 )
621+ read_csv (path , header = lrange (i ), index_col = 0 )
623622
624623 # write with cols
625624 with tm .assert_raises_regex (TypeError , 'cannot specify cols '
626625 'with a MultiIndex' ):
627- df .to_csv (path , tupleize_cols = False , columns = ['foo' , 'bar' ])
626+ df .to_csv (path , columns = ['foo' , 'bar' ])
628627
629628 with ensure_clean ('__tmp_to_csv_multiindex__' ) as path :
630629 # empty
0 commit comments