Skip to content

Commit 4a24596

Browse files
committed
Assign self to data and remove _get_data and get_data
1 parent f481310 commit 4a24596

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7291,7 +7291,7 @@ def f(x):
72917291
if filter_type is None or filter_type == 'numeric':
72927292
data = self._get_numeric_data()
72937293
elif filter_type == 'bool':
7294-
data = self._get_data()
7294+
data = self
72957295
else: # pragma: no cover
72967296
msg = ("Generating numeric_only data with filter_type {f}"
72977297
"not supported.".format(f=filter_type))

pandas/core/generic.py

-3
Original file line numberDiff line numberDiff line change
@@ -5168,9 +5168,6 @@ def _check_inplace_setting(self, value):
51685168

51695169
return True
51705170

5171-
def _get_data(self):
5172-
return self._constructor(self._data.get_data()).__finalize__(self)
5173-
51745171
def _get_numeric_data(self):
51755172
return self._constructor(
51765173
self._data.get_numeric_data()).__finalize__(self)

pandas/core/internals/managers.py

-10
Original file line numberDiff line numberDiff line change
@@ -632,16 +632,6 @@ def is_view(self):
632632

633633
return False
634634

635-
def get_data(self, copy=False):
636-
"""
637-
Parameters
638-
----------
639-
copy : boolean, default False
640-
Whether to copy the blocks
641-
"""
642-
self._consolidate_inplace()
643-
return self.combine([b for b in self.blocks], copy)
644-
645635
def get_bool_data(self, copy=False):
646636
"""
647637
Parameters

0 commit comments

Comments
 (0)