|
68 | 68 | )
|
69 | 69 |
|
70 | 70 | import pandas.core.algorithms as algos
|
71 |
| -from pandas.core.arrays import ( |
72 |
| - Categorical, |
73 |
| - DatetimeArray, |
74 |
| - ExtensionArray, |
75 |
| - PandasDtype, |
76 |
| - TimedeltaArray, |
77 |
| -) |
| 71 | +from pandas.core.arrays import Categorical, DatetimeArray, PandasDtype, TimedeltaArray |
78 | 72 | from pandas.core.base import PandasObject
|
79 | 73 | import pandas.core.common as com
|
80 | 74 | from pandas.core.construction import extract_array
|
@@ -209,10 +203,6 @@ def internal_values(self, dtype=None):
|
209 | 203 | """
|
210 | 204 | return self.values
|
211 | 205 |
|
212 |
| - def formatting_values(self): |
213 |
| - """Return the internal values used by the DataFrame/SeriesFormatter""" |
214 |
| - return self.internal_values() |
215 |
| - |
216 | 206 | def get_values(self, dtype=None):
|
217 | 207 | """
|
218 | 208 | return an internal format, currently just the ndarray
|
@@ -1831,21 +1821,6 @@ def _slice(self, slicer):
|
1831 | 1821 |
|
1832 | 1822 | return self.values[slicer]
|
1833 | 1823 |
|
1834 |
| - def formatting_values(self): |
1835 |
| - # Deprecating the ability to override _formatting_values. |
1836 |
| - # Do the warning here, it's only user in pandas, since we |
1837 |
| - # have to check if the subclass overrode it. |
1838 |
| - fv = getattr(type(self.values), "_formatting_values", None) |
1839 |
| - if fv and fv != ExtensionArray._formatting_values: |
1840 |
| - msg = ( |
1841 |
| - "'ExtensionArray._formatting_values' is deprecated. " |
1842 |
| - "Specify 'ExtensionArray._formatter' instead." |
1843 |
| - ) |
1844 |
| - warnings.warn(msg, FutureWarning, stacklevel=10) |
1845 |
| - return self.values._formatting_values() |
1846 |
| - |
1847 |
| - return self.values |
1848 |
| - |
1849 | 1824 | def concat_same_type(self, to_concat, placement=None):
|
1850 | 1825 | """
|
1851 | 1826 | Concatenate list of single blocks of the same type.
|
|
0 commit comments