Skip to content
Snippets Groups Projects
Commit 92e23268 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed .xloc imports

parent faffd8c8
No related branches found
No related tags found
No related merge requests found
......@@ -389,27 +389,22 @@ class DictOfSeries:
@property
def loc(self):
from .indexer import _LocIndexer
return _LocIndexer(self)
@property
def iloc(self):
from .indexer import _iLocIndexer
return _iLocIndexer(self)
@property
def aloc(self):
from .indexer import _aLocIndexer
return _aLocIndexer(self)
@property
def at(self):
from .indexer import _AtIndexer
return _AtIndexer(self)
@property
def iat(self):
from .indexer import _iAtIndexer
return _iAtIndexer(self)
@property
......@@ -746,7 +741,6 @@ def pprint_dios(dios,
col_space=None, show_dimensions=True,
col_delim=' | ', header_delim='='
):
na_rep = str(na_rep)
empty_series_rep = str(empty_series_rep)
col_delim = col_delim or ' '
......@@ -825,7 +819,7 @@ def pprint_dios(dios,
if trunc_cols:
outer.insert(max_cols // 2, [dots] * rows)
valstr_len.insert(max_cols // 2, len(dots))
series_lengths.insert(max_cols//2, rows)
series_lengths.insert(max_cols // 2, rows)
txt = ""
for r in range(rows):
......@@ -841,7 +835,7 @@ def pprint_dios(dios,
if show_dimensions:
for i, c in enumerate(outer):
# ignore the dot-column
if trunc_cols and i == max_cols//2:
if trunc_cols and i == max_cols // 2:
txt += dots + ' ' * len(col_delim)
else:
txt += f"[{series_lengths[i]}]".ljust(valstr_len[i] + len(col_delim))
......@@ -917,3 +911,5 @@ def __monkey_patch_pandas():
__monkey_patch_pandas()
# keep this here to prevent cyclic import
from .indexer import _aLocIndexer, _iLocIndexer, _LocIndexer, _iAtIndexer, _AtIndexer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment