|
53 | 53 | from pandas.tseries.period import PeriodIndex
|
54 | 54 | from pandas.tseries.index import DatetimeIndex
|
55 | 55 | from pandas.tseries.tdi import TimedeltaIndex
|
56 |
| -from pandas.io.common import _expand_user |
57 | 56 |
|
58 | 57 | import pandas.core.algorithms as algos
|
59 | 58 | import pandas.core.base as base
|
@@ -1315,7 +1314,6 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
|
1315 | 1314 | .. versionadded:: 0.16.0
|
1316 | 1315 |
|
1317 | 1316 | """
|
1318 |
| - path_or_buf = _expand_user(path_or_buf) |
1319 | 1317 | formatter = fmt.CSVFormatter(self, path_or_buf,
|
1320 | 1318 | line_terminator=line_terminator,
|
1321 | 1319 | sep=sep, encoding=encoding,
|
@@ -1518,7 +1516,6 @@ def to_html(self, buf=None, columns=None, col_space=None, colSpace=None,
|
1518 | 1516 | FutureWarning, stacklevel=2)
|
1519 | 1517 | col_space = colSpace
|
1520 | 1518 |
|
1521 |
| - buf = _expand_user(buf) |
1522 | 1519 | formatter = fmt.DataFrameFormatter(self, buf=buf, columns=columns,
|
1523 | 1520 | col_space=col_space, na_rep=na_rep,
|
1524 | 1521 | formatters=formatters,
|
@@ -1569,7 +1566,6 @@ def to_latex(self, buf=None, columns=None, col_space=None, colSpace=None,
|
1569 | 1566 | FutureWarning, stacklevel=2)
|
1570 | 1567 | col_space = colSpace
|
1571 | 1568 |
|
1572 |
| - buf = _expand_user(buf) |
1573 | 1569 | formatter = fmt.DataFrameFormatter(self, buf=buf, columns=columns,
|
1574 | 1570 | col_space=col_space, na_rep=na_rep,
|
1575 | 1571 | header=header, index=index,
|
|
0 commit comments