Hello everyone,
I am trying to select X and y as:
X = [c for c in branches if c != 'flags']
y = (["flags"] == 1).astype(Int64)
However, the entirity of my data is mixed (some bool some int) Not sure if I can sort of go around this in y since it keeps saying it's a bool.
X is supposed to be all the cols except flags and y is when flags ==1.
Error: AttributeError: 'bool' object has no attribute 'astype'