|
32 | 32 | to_datetime)
|
33 | 33 | from pandas.core.arrays.categorical import Categorical
|
34 | 34 | from pandas.core.arrays.sparse import BlockIndex, IntIndex
|
35 |
| -from pandas.core.base import StringMixin |
36 | 35 | import pandas.core.common as com
|
37 | 36 | from pandas.core.computation.pytables import Expr, maybe_expression
|
38 | 37 | from pandas.core.index import ensure_index
|
@@ -398,7 +397,7 @@ def _is_metadata_of(group, parent_group):
|
398 | 397 | return False
|
399 | 398 |
|
400 | 399 |
|
401 |
| -class HDFStore(StringMixin): |
| 400 | +class HDFStore: |
402 | 401 |
|
403 | 402 | """
|
404 | 403 | Dict-like IO interface for storing pandas objects in PyTables
|
@@ -520,7 +519,7 @@ def __contains__(self, key):
|
520 | 519 | def __len__(self):
|
521 | 520 | return len(self.groups())
|
522 | 521 |
|
523 |
| - def __str__(self): |
| 522 | + def __repr__(self): |
524 | 523 | return '{type}\nFile path: {path}\n'.format(
|
525 | 524 | type=type(self), path=pprint_thing(self._path))
|
526 | 525 |
|
@@ -1519,7 +1518,7 @@ def get_result(self, coordinates=False):
|
1519 | 1518 | return results
|
1520 | 1519 |
|
1521 | 1520 |
|
1522 |
| -class IndexCol(StringMixin): |
| 1521 | +class IndexCol: |
1523 | 1522 |
|
1524 | 1523 | """ an index column description class
|
1525 | 1524 |
|
@@ -1587,7 +1586,7 @@ def set_table(self, table):
|
1587 | 1586 | self.table = table
|
1588 | 1587 | return self
|
1589 | 1588 |
|
1590 |
| - def __str__(self): |
| 1589 | + def __repr__(self): |
1591 | 1590 | temp = tuple(
|
1592 | 1591 | map(pprint_thing,
|
1593 | 1592 | (self.name,
|
@@ -1881,7 +1880,7 @@ def __init__(self, values=None, kind=None, typ=None,
|
1881 | 1880 | self.set_data(data)
|
1882 | 1881 | self.set_metadata(metadata)
|
1883 | 1882 |
|
1884 |
| - def __str__(self): |
| 1883 | + def __repr__(self): |
1885 | 1884 | temp = tuple(
|
1886 | 1885 | map(pprint_thing,
|
1887 | 1886 | (self.name,
|
@@ -2286,7 +2285,7 @@ def get_attr(self):
|
2286 | 2285 | pass
|
2287 | 2286 |
|
2288 | 2287 |
|
2289 |
| -class Fixed(StringMixin): |
| 2288 | +class Fixed: |
2290 | 2289 |
|
2291 | 2290 | """ represent an object in my store
|
2292 | 2291 | facilitate read/write of various types of objects
|
@@ -2336,7 +2335,7 @@ def pandas_type(self):
|
2336 | 2335 | def format_type(self):
|
2337 | 2336 | return 'fixed'
|
2338 | 2337 |
|
2339 |
| - def __str__(self): |
| 2338 | + def __repr__(self): |
2340 | 2339 | """ return a pretty representation of myself """
|
2341 | 2340 | self.infer_axes()
|
2342 | 2341 | s = self.shape
|
@@ -3077,8 +3076,8 @@ def table_type_short(self):
|
3077 | 3076 | def format_type(self):
|
3078 | 3077 | return 'table'
|
3079 | 3078 |
|
3080 |
| - def __str__(self): |
3081 |
| - """ return a pretty representatgion of myself """ |
| 3079 | + def __repr__(self): |
| 3080 | + """ return a pretty representation of myself """ |
3082 | 3081 | self.infer_axes()
|
3083 | 3082 | dc = ",dc->[{columns}]".format(columns=(','.join(
|
3084 | 3083 | self.data_columns) if len(self.data_columns) else ''))
|
|
0 commit comments