@@ -1071,7 +1071,7 @@ def to_panel(self):
10711071 @deprecate_kwarg (old_arg_name = 'cols' , new_arg_name = 'columns' )
10721072 def to_csv (self , path_or_buf = None , sep = "," , na_rep = '' , float_format = None ,
10731073 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 ,
10751075 quotechar = '"' , line_terminator = '\n ' , chunksize = None ,
10761076 tupleize_cols = False , date_format = None , doublequote = True ,
10771077 escapechar = None , ** kwds ):
@@ -1128,10 +1128,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
11281128 Format string for datetime objects
11291129 cols : kwarg only alias of columns [deprecated]
11301130 """
1131- if nanRep is not None : # pragma: no cover
1132- warnings .warn ("nanRep is deprecated, use na_rep" ,
1133- FutureWarning )
1134- na_rep = nanRep
11351131
11361132 formatter = fmt .CSVFormatter (self , path_or_buf ,
11371133 line_terminator = line_terminator ,
@@ -1275,21 +1271,12 @@ def to_stata(
12751271 @Appender (fmt .docstring_to_string , indents = 1 )
12761272 def to_string (self , buf = None , columns = None , col_space = None , colSpace = None ,
12771273 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 ,
12811276 show_dimensions = False ):
12821277 """
12831278 Render a DataFrame to a console-friendly tabular output.
12841279 """
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
12931280
12941281 if colSpace is not None : # pragma: no cover
12951282 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,
13181305 def to_html (self , buf = None , columns = None , col_space = None , colSpace = None ,
13191306 header = True , index = True , na_rep = 'NaN' , formatters = None ,
13201307 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 ):
13241310 """
13251311 Render a DataFrame as an HTML table.
13261312
@@ -1341,10 +1327,6 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
13411327
13421328 """
13431329
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-
13481330 if colSpace is not None : # pragma: no cover
13491331 warnings .warn ("colSpace is deprecated, use col_space" ,
13501332 FutureWarning )
@@ -1372,7 +1354,7 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
13721354 def to_latex (self , buf = None , columns = None , col_space = None , colSpace = None ,
13731355 header = True , index = True , na_rep = 'NaN' , formatters = None ,
13741356 float_format = None , sparsify = None , index_names = True ,
1375- bold_rows = True , force_unicode = None , longtable = False ):
1357+ bold_rows = True , longtable = False ):
13761358 """
13771359 Render a DataFrame to a tabular environment table. You can splice
13781360 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,
13871369
13881370 """
13891371
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-
13941372 if colSpace is not None : # pragma: no cover
13951373 warnings .warn ("colSpace is deprecated, use col_space" ,
13961374 FutureWarning )
0 commit comments