@@ -1071,7 +1071,7 @@ def to_panel(self):
1071
1071
@deprecate_kwarg (old_arg_name = 'cols' , new_arg_name = 'columns' )
1072
1072
def to_csv (self , path_or_buf = None , sep = "," , na_rep = '' , float_format = None ,
1073
1073
columns = None , header = True , index = True , index_label = None ,
1074
- mode = 'w' , nanRep = None , encoding = None , quoting = None ,
1074
+ mode = 'w' , encoding = None , quoting = None ,
1075
1075
quotechar = '"' , line_terminator = '\n ' , chunksize = None ,
1076
1076
tupleize_cols = False , date_format = None , doublequote = True ,
1077
1077
escapechar = None , ** kwds ):
@@ -1128,10 +1128,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
1128
1128
Format string for datetime objects
1129
1129
cols : kwarg only alias of columns [deprecated]
1130
1130
"""
1131
- if nanRep is not None : # pragma: no cover
1132
- warnings .warn ("nanRep is deprecated, use na_rep" ,
1133
- FutureWarning )
1134
- na_rep = nanRep
1135
1131
1136
1132
formatter = fmt .CSVFormatter (self , path_or_buf ,
1137
1133
line_terminator = line_terminator ,
@@ -1275,21 +1271,12 @@ def to_stata(
1275
1271
@Appender (fmt .docstring_to_string , indents = 1 )
1276
1272
def to_string (self , buf = None , columns = None , col_space = None , colSpace = None ,
1277
1273
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1278
- float_format = None , sparsify = None , nanRep = None ,
1279
- index_names = True , justify = None , force_unicode = None ,
1280
- line_width = None , max_rows = None , max_cols = None ,
1274
+ float_format = None , sparsify = None , index_names = True ,
1275
+ justify = None , line_width = None , max_rows = None , max_cols = None ,
1281
1276
show_dimensions = False ):
1282
1277
"""
1283
1278
Render a DataFrame to a console-friendly tabular output.
1284
1279
"""
1285
- if force_unicode is not None : # pragma: no cover
1286
- warnings .warn ("force_unicode is deprecated, it will have no "
1287
- "effect" , FutureWarning )
1288
-
1289
- if nanRep is not None : # pragma: no cover
1290
- warnings .warn ("nanRep is deprecated, use na_rep" ,
1291
- FutureWarning )
1292
- na_rep = nanRep
1293
1280
1294
1281
if colSpace is not None : # pragma: no cover
1295
1282
warnings .warn ("colSpace is deprecated, use col_space" ,
@@ -1318,9 +1305,8 @@ def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
1318
1305
def to_html (self , buf = None , columns = None , col_space = None , colSpace = None ,
1319
1306
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1320
1307
float_format = None , sparsify = None , index_names = True ,
1321
- justify = None , force_unicode = None , bold_rows = True ,
1322
- classes = None , escape = True , max_rows = None , max_cols = None ,
1323
- show_dimensions = False ):
1308
+ justify = None , bold_rows = True , classes = None , escape = True ,
1309
+ max_rows = None , max_cols = None , show_dimensions = False ):
1324
1310
"""
1325
1311
Render a DataFrame as an HTML table.
1326
1312
@@ -1341,10 +1327,6 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1341
1327
1342
1328
"""
1343
1329
1344
- if force_unicode is not None : # pragma: no cover
1345
- warnings .warn ("force_unicode is deprecated, it will have no "
1346
- "effect" , FutureWarning )
1347
-
1348
1330
if colSpace is not None : # pragma: no cover
1349
1331
warnings .warn ("colSpace is deprecated, use col_space" ,
1350
1332
FutureWarning )
@@ -1372,7 +1354,7 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1372
1354
def to_latex (self , buf = None , columns = None , col_space = None , colSpace = None ,
1373
1355
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1374
1356
float_format = None , sparsify = None , index_names = True ,
1375
- bold_rows = True , force_unicode = None , longtable = False ):
1357
+ bold_rows = True , longtable = False ):
1376
1358
"""
1377
1359
Render a DataFrame to a tabular environment table. You can splice
1378
1360
this into a LaTeX document. Requires \\ usepackage(booktabs}.
@@ -1387,10 +1369,6 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
1387
1369
1388
1370
"""
1389
1371
1390
- if force_unicode is not None : # pragma: no cover
1391
- warnings .warn ("force_unicode is deprecated, it will have no "
1392
- "effect" , FutureWarning )
1393
-
1394
1372
if colSpace is not None : # pragma: no cover
1395
1373
warnings .warn ("colSpace is deprecated, use col_space" ,
1396
1374
FutureWarning )
0 commit comments