@@ -1065,7 +1065,7 @@ def to_panel(self):
1065
1065
@deprecate_kwarg (old_arg_name = 'cols' , new_arg_name = 'columns' )
1066
1066
def to_csv (self , path_or_buf = None , sep = "," , na_rep = '' , float_format = None ,
1067
1067
columns = None , header = True , index = True , index_label = None ,
1068
- mode = 'w' , nanRep = None , encoding = None , quoting = None ,
1068
+ mode = 'w' , encoding = None , quoting = None ,
1069
1069
quotechar = '"' , line_terminator = '\n ' , chunksize = None ,
1070
1070
tupleize_cols = False , date_format = None , doublequote = True ,
1071
1071
escapechar = None , ** kwds ):
@@ -1122,10 +1122,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
1122
1122
Format string for datetime objects
1123
1123
cols : kwarg only alias of columns [deprecated]
1124
1124
"""
1125
- if nanRep is not None : # pragma: no cover
1126
- warnings .warn ("nanRep is deprecated, use na_rep" ,
1127
- FutureWarning )
1128
- na_rep = nanRep
1129
1125
1130
1126
formatter = fmt .CSVFormatter (self , path_or_buf ,
1131
1127
line_terminator = line_terminator ,
@@ -1269,21 +1265,12 @@ def to_stata(
1269
1265
@Appender (fmt .docstring_to_string , indents = 1 )
1270
1266
def to_string (self , buf = None , columns = None , col_space = None , colSpace = None ,
1271
1267
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1272
- float_format = None , sparsify = None , nanRep = None ,
1273
- index_names = True , justify = None , force_unicode = None ,
1274
- line_width = None , max_rows = None , max_cols = None ,
1268
+ float_format = None , sparsify = None , index_names = True ,
1269
+ justify = None , line_width = None , max_rows = None , max_cols = None ,
1275
1270
show_dimensions = False ):
1276
1271
"""
1277
1272
Render a DataFrame to a console-friendly tabular output.
1278
1273
"""
1279
- if force_unicode is not None : # pragma: no cover
1280
- warnings .warn ("force_unicode is deprecated, it will have no "
1281
- "effect" , FutureWarning )
1282
-
1283
- if nanRep is not None : # pragma: no cover
1284
- warnings .warn ("nanRep is deprecated, use na_rep" ,
1285
- FutureWarning )
1286
- na_rep = nanRep
1287
1274
1288
1275
if colSpace is not None : # pragma: no cover
1289
1276
warnings .warn ("colSpace is deprecated, use col_space" ,
@@ -1312,9 +1299,8 @@ def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
1312
1299
def to_html (self , buf = None , columns = None , col_space = None , colSpace = None ,
1313
1300
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1314
1301
float_format = None , sparsify = None , index_names = True ,
1315
- justify = None , force_unicode = None , bold_rows = True ,
1316
- classes = None , escape = True , max_rows = None , max_cols = None ,
1317
- show_dimensions = False ):
1302
+ justify = None , bold_rows = True , classes = None , escape = True ,
1303
+ max_rows = None , max_cols = None , show_dimensions = False ):
1318
1304
"""
1319
1305
Render a DataFrame as an HTML table.
1320
1306
@@ -1335,10 +1321,6 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1335
1321
1336
1322
"""
1337
1323
1338
- if force_unicode is not None : # pragma: no cover
1339
- warnings .warn ("force_unicode is deprecated, it will have no "
1340
- "effect" , FutureWarning )
1341
-
1342
1324
if colSpace is not None : # pragma: no cover
1343
1325
warnings .warn ("colSpace is deprecated, use col_space" ,
1344
1326
FutureWarning )
@@ -1366,7 +1348,7 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
1366
1348
def to_latex (self , buf = None , columns = None , col_space = None , colSpace = None ,
1367
1349
header = True , index = True , na_rep = 'NaN' , formatters = None ,
1368
1350
float_format = None , sparsify = None , index_names = True ,
1369
- bold_rows = True , force_unicode = None , longtable = False ):
1351
+ bold_rows = True , longtable = False ):
1370
1352
"""
1371
1353
Render a DataFrame to a tabular environment table. You can splice
1372
1354
this into a LaTeX document. Requires \\ usepackage(booktabs}.
@@ -1381,10 +1363,6 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
1381
1363
1382
1364
"""
1383
1365
1384
- if force_unicode is not None : # pragma: no cover
1385
- warnings .warn ("force_unicode is deprecated, it will have no "
1386
- "effect" , FutureWarning )
1387
-
1388
1366
if colSpace is not None : # pragma: no cover
1389
1367
warnings .warn ("colSpace is deprecated, use col_space" ,
1390
1368
FutureWarning )
0 commit comments