Skip to content

Commit 34ea1f2

Browse files
author
Marc Garcia
committed
Removing duplicated data type checks
1 parent 0d146f9 commit 34ea1f2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pandas/plotting/_core.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -923,10 +923,6 @@ def scatter(self, x, y, s=None, c=None, **kwargs):
923923
... c='species',
924924
... colormap='viridis')
925925
"""
926-
if not isinstance(self._parent,
927-
pandas.core.dtypes.generic.ABCDataFrame):
928-
raise ValueError(
929-
"plot kind scatter can only be used for data frames")
930926
return self(kind='scatter', x=x, y=y, s=s, c=c, **kwargs)
931927

932928
def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None,
@@ -1012,11 +1008,6 @@ def hexbin(self, x, y, C=None, reduce_C_function=None, gridsize=None,
10121008
... gridsize=10,
10131009
... cmap="viridis")
10141010
"""
1015-
if not isinstance(self._parent,
1016-
pandas.core.dtypes.generic.ABCDataFrame):
1017-
raise ValueError(
1018-
"plot kind hexbin can only be used for data frames")
1019-
10201011
if reduce_C_function is not None:
10211012
kwargs['reduce_C_function'] = reduce_C_function
10221013
if gridsize is not None:

0 commit comments

Comments
 (0)