@@ -1137,9 +1137,9 @@ def __init__(self, data, x, y, **kwargs) -> None:
1137
1137
MPLPlot .__init__ (self , data , ** kwargs )
1138
1138
if x is None or y is None :
1139
1139
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 ():
1141
1141
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 ():
1143
1143
y = self .data .columns [y ]
1144
1144
1145
1145
# Scatter plot allows to plot objects data
@@ -1196,7 +1196,7 @@ def __init__(self, data, x, y, s=None, c=None, **kwargs) -> None:
1196
1196
elif is_hashable (s ) and s in data .columns :
1197
1197
s = data [s ]
1198
1198
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 ():
1200
1200
c = self .data .columns [c ]
1201
1201
self .c = c
1202
1202
@@ -1291,7 +1291,7 @@ def _kind(self) -> Literal["hexbin"]:
1291
1291
1292
1292
def __init__ (self , data , x , y , C = None , ** kwargs ) -> None :
1293
1293
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 ():
1295
1295
C = self .data .columns [C ]
1296
1296
self .C = C
1297
1297
0 commit comments