swarm-learning icon indicating copy to clipboard operation
swarm-learning copied to clipboard

romove test.drop() function in cancer-pred example

Open flik1337 opened this issue 1 year ago • 0 comments

I removed the line 63: test.drop("Unnamed: 32",axis=1,inplace=True) The csv dataset is already been cleaned with df=df[col_names] on line45 ,and there is no column named Unnamed: 32. If this line is not removed, it will result in the following error.

raise KeyError(f"{list(labels[mask])} not found in axis")
KeyError: "['Unnamed: 32'] not found in axis"

flik1337 avatar Mar 07 '23 07:03 flik1337