|
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,8 +397,7 @@ def _is_metadata_of(group, parent_group):
|
398 | 397 | return False
|
399 | 398 |
|
400 | 399 |
|
401 |
| -class HDFStore(StringMixin): |
402 |
| - |
| 400 | +class HDFStore: |
403 | 401 | """
|
404 | 402 | Dict-like IO interface for storing pandas objects in PyTables
|
405 | 403 | either Fixed or Table format.
|
@@ -520,7 +518,7 @@ def __contains__(self, key):
|
520 | 518 | def __len__(self):
|
521 | 519 | return len(self.groups())
|
522 | 520 |
|
523 |
| - def __str__(self): |
| 521 | + def __repr__(self): |
524 | 522 | return '{type}\nFile path: {path}\n'.format(
|
525 | 523 | type=type(self), path=pprint_thing(self._path))
|
526 | 524 |
|
@@ -1519,8 +1517,7 @@ def get_result(self, coordinates=False):
|
1519 | 1517 | return results
|
1520 | 1518 |
|
1521 | 1519 |
|
1522 |
| -class IndexCol(StringMixin): |
1523 |
| - |
| 1520 | +class IndexCol: |
1524 | 1521 | """ an index column description class
|
1525 | 1522 |
|
1526 | 1523 | Parameters
|
@@ -1587,7 +1584,7 @@ def set_table(self, table):
|
1587 | 1584 | self.table = table
|
1588 | 1585 | return self
|
1589 | 1586 |
|
1590 |
| - def __str__(self): |
| 1587 | + def __repr__(self): |
1591 | 1588 | temp = tuple(
|
1592 | 1589 | map(pprint_thing,
|
1593 | 1590 | (self.name,
|
@@ -1881,7 +1878,7 @@ def __init__(self, values=None, kind=None, typ=None,
|
1881 | 1878 | self.set_data(data)
|
1882 | 1879 | self.set_metadata(metadata)
|
1883 | 1880 |
|
1884 |
| - def __str__(self): |
| 1881 | + def __repr__(self): |
1885 | 1882 | temp = tuple(
|
1886 | 1883 | map(pprint_thing,
|
1887 | 1884 | (self.name,
|
@@ -2286,8 +2283,7 @@ def get_attr(self):
|
2286 | 2283 | pass
|
2287 | 2284 |
|
2288 | 2285 |
|
2289 |
| -class Fixed(StringMixin): |
2290 |
| - |
| 2286 | +class Fixed: |
2291 | 2287 | """ represent an object in my store
|
2292 | 2288 | facilitate read/write of various types of objects
|
2293 | 2289 | this is an abstract base class
|
@@ -2336,7 +2332,7 @@ def pandas_type(self):
|
2336 | 2332 | def format_type(self):
|
2337 | 2333 | return 'fixed'
|
2338 | 2334 |
|
2339 |
| - def __str__(self): |
| 2335 | + def __repr__(self): |
2340 | 2336 | """ return a pretty representation of myself """
|
2341 | 2337 | self.infer_axes()
|
2342 | 2338 | s = self.shape
|
@@ -3077,7 +3073,7 @@ def table_type_short(self):
|
3077 | 3073 | def format_type(self):
|
3078 | 3074 | return 'table'
|
3079 | 3075 |
|
3080 |
| - def __str__(self): |
| 3076 | + def __repr__(self): |
3081 | 3077 | """ return a pretty representatgion of myself """
|
3082 | 3078 | self.infer_axes()
|
3083 | 3079 | dc = ",dc->[{columns}]".format(columns=(','.join(
|
|
0 commit comments