I\'m trying to shuffle my indices using the np.random.shuffle() method, but I keep getting an error that I don\'t understand. I\'d appreciate it if someone could help me puz
Got the same error:
KeyError: "None of [Int64Index([26], dtype='int64')] are in the [index]"
Solved by Saving the dataframe to a local file and open it,
like below:
df.to_csv('Step1.csv',index=False) df = pd.read_csv('Step1.csv')