Skip to content

Commit 9f6802d

Browse files
committed
deprecation warnings in panel.py
1 parent 2e70081 commit 9f6802d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pandas/core/panel.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,19 @@ def minor_xs(self, key):
573573
mat = np.array(self.values[:, :, loc].T)
574574
return DataMatrix(mat, index=self.major_axis, columns=self.items)
575575

576-
getMinorXS = minor_xs
577-
getMajorXS = major_xs
576+
def getMinorXS(self, key): # pragma: no cover
577+
warnings.warn("getMinorXS has been replaced by the minor_xs function "
578+
"please modify your code accordingly",
579+
FutureWarning)
580+
581+
return self.minor_xs(key)
582+
583+
def getMajorXS(self, key): # pragma: no cover
584+
warnings.warn("getMajorXS has been replaced by the major_xs function "
585+
"please modify your code accordingly",
586+
FutureWarning)
587+
588+
return self.major_xs(key)
578589

579590
def groupby(self, function, axis='major'):
580591
"""

0 commit comments

Comments
 (0)