|
49 | 49 | multiindex key at each row, default True
|
50 | 50 | justify : {'left', 'right'}, default None
|
51 | 51 | Left or right-justify the column labels. If None uses the option from
|
52 |
| - the print configuration (controlled by set_printoptions), 'right' out |
| 52 | + the print configuration (controlled by set_option), 'right' out |
53 | 53 | of the box.
|
54 | 54 | index_names : bool, optional
|
55 | 55 | Prints the names of the indexes, default True
|
@@ -1669,78 +1669,6 @@ def _has_names(index):
|
1669 | 1669 | #------------------------------------------------------------------------------
|
1670 | 1670 | # Global formatting options
|
1671 | 1671 |
|
1672 |
| - |
1673 |
| -def set_printoptions(precision=None, column_space=None, max_rows=None, |
1674 |
| - max_columns=None, colheader_justify=None, |
1675 |
| - max_colwidth=None, notebook_repr_html=None, |
1676 |
| - date_dayfirst=None, date_yearfirst=None, |
1677 |
| - pprint_nest_depth=None, multi_sparse=None, encoding=None): |
1678 |
| - """ |
1679 |
| - Alter default behavior of DataFrame.toString |
1680 |
| -
|
1681 |
| - precision : int |
1682 |
| - Floating point output precision (number of significant digits). This is |
1683 |
| - only a suggestion |
1684 |
| - column_space : int |
1685 |
| - Default space for DataFrame columns, defaults to 12 |
1686 |
| - max_rows : int |
1687 |
| - max_columns : int |
1688 |
| - max_rows and max_columns are used in __repr__() methods to decide if |
1689 |
| - to_string() or info() is used to render an object to a string. |
1690 |
| - Either one, or both can be set to 0 (experimental). Pandas will figure |
1691 |
| - out how big the terminal is and will not display more rows or/and |
1692 |
| - columns that can fit on it. |
1693 |
| - colheader_justify |
1694 |
| - notebook_repr_html : boolean |
1695 |
| - When True (default), IPython notebook will use html representation for |
1696 |
| - pandas objects (if it is available). |
1697 |
| - date_dayfirst : boolean |
1698 |
| - When True, prints and parses dates with the day first, eg 20/01/2005 |
1699 |
| - date_yearfirst : boolean |
1700 |
| - When True, prints and parses dates with the year first, eg 2005/01/20 |
1701 |
| - pprint_nest_depth : int |
1702 |
| - Defaults to 3. |
1703 |
| - Controls the number of nested levels to process when pretty-printing |
1704 |
| - nested sequences. |
1705 |
| - multi_sparse : boolean |
1706 |
| - Default True, "sparsify" MultiIndex display (don't display repeated |
1707 |
| - elements in outer levels within groups) |
1708 |
| - """ |
1709 |
| - import warnings |
1710 |
| - warnings.warn("set_printoptions is deprecated, use set_option instead", |
1711 |
| - FutureWarning) |
1712 |
| - if precision is not None: |
1713 |
| - set_option("display.precision", precision) |
1714 |
| - if column_space is not None: |
1715 |
| - set_option("display.column_space", column_space) |
1716 |
| - if max_rows is not None: |
1717 |
| - set_option("display.max_rows", max_rows) |
1718 |
| - if max_colwidth is not None: |
1719 |
| - set_option("display.max_colwidth", max_colwidth) |
1720 |
| - if max_columns is not None: |
1721 |
| - set_option("display.max_columns", max_columns) |
1722 |
| - if colheader_justify is not None: |
1723 |
| - set_option("display.colheader_justify", colheader_justify) |
1724 |
| - if notebook_repr_html is not None: |
1725 |
| - set_option("display.notebook_repr_html", notebook_repr_html) |
1726 |
| - if date_dayfirst is not None: |
1727 |
| - set_option("display.date_dayfirst", date_dayfirst) |
1728 |
| - if date_yearfirst is not None: |
1729 |
| - set_option("display.date_yearfirst", date_yearfirst) |
1730 |
| - if pprint_nest_depth is not None: |
1731 |
| - set_option("display.pprint_nest_depth", pprint_nest_depth) |
1732 |
| - if multi_sparse is not None: |
1733 |
| - set_option("display.multi_sparse", multi_sparse) |
1734 |
| - if encoding is not None: |
1735 |
| - set_option("display.encoding", encoding) |
1736 |
| - |
1737 |
| - |
1738 |
| -def reset_printoptions(): |
1739 |
| - import warnings |
1740 |
| - warnings.warn("reset_printoptions is deprecated, use reset_option instead", |
1741 |
| - FutureWarning) |
1742 |
| - reset_option("^display\.") |
1743 |
| - |
1744 | 1672 | _initial_defencoding = None
|
1745 | 1673 | def detect_console_encoding():
|
1746 | 1674 | """
|
|
0 commit comments