Skip to content

Commit 6b2001f

Browse files
committed
make is_memory_usage_qualified a private Index method
1 parent 8ae4a8e commit 6b2001f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ def _sizeof_fmt(num, size_qualifier):
17531753
# categories)
17541754
deep = False
17551755
if ('object' in counts or
1756-
self.index.is_memory_usage_qualified()):
1756+
self.index._is_memory_usage_qualified()):
17571757
size_qualifier = '+'
17581758
mem_usage = self.memory_usage(index=True, deep=deep).sum()
17591759
lines.append("memory usage: %s\n" %

pandas/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ def inferred_type(self):
14291429
""" return a string of the type inferred from the values """
14301430
return lib.infer_dtype(self)
14311431

1432-
def is_memory_usage_qualified(self):
1432+
def _is_memory_usage_qualified(self):
14331433
""" return a boolean if we need a qualified .info display """
14341434
return self.is_object()
14351435

pandas/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _shallow_copy(self, values=None, **kwargs):
428428
def dtype(self):
429429
return np.dtype('O')
430430

431-
def is_memory_usage_qualified(self):
431+
def _is_memory_usage_qualified(self):
432432
""" return a boolean if we need a qualified .info display """
433433
def f(l):
434434
return 'mixed' in l or 'string' in l or 'unicode' in l

0 commit comments

Comments
 (0)