@@ -1137,9 +1137,9 @@ def __init__(self, data, x, y, **kwargs) -> None:
11371137        MPLPlot .__init__ (self , data , ** kwargs )
11381138        if  x  is  None  or  y  is  None :
11391139            raise  ValueError (self ._kind  +  " requires an x and y column" )
1140-         if  is_integer (x ) and  not  self .data .columns .holds_integer ():
1140+         if  is_integer (x ) and  not  self .data .columns ._holds_integer ():
11411141            x  =  self .data .columns [x ]
1142-         if  is_integer (y ) and  not  self .data .columns .holds_integer ():
1142+         if  is_integer (y ) and  not  self .data .columns ._holds_integer ():
11431143            y  =  self .data .columns [y ]
11441144
11451145        # Scatter plot allows to plot objects data 
@@ -1196,7 +1196,7 @@ def __init__(self, data, x, y, s=None, c=None, **kwargs) -> None:
11961196        elif  is_hashable (s ) and  s  in  data .columns :
11971197            s  =  data [s ]
11981198        super ().__init__ (data , x , y , s = s , ** kwargs )
1199-         if  is_integer (c ) and  not  self .data .columns .holds_integer ():
1199+         if  is_integer (c ) and  not  self .data .columns ._holds_integer ():
12001200            c  =  self .data .columns [c ]
12011201        self .c  =  c 
12021202
@@ -1291,7 +1291,7 @@ def _kind(self) -> Literal["hexbin"]:
12911291
12921292    def  __init__ (self , data , x , y , C = None , ** kwargs ) ->  None :
12931293        super ().__init__ (data , x , y , ** kwargs )
1294-         if  is_integer (C ) and  not  self .data .columns .holds_integer ():
1294+         if  is_integer (C ) and  not  self .data .columns ._holds_integer ():
12951295            C  =  self .data .columns [C ]
12961296        self .C  =  C 
12971297
0 commit comments