text_plain_output_1.png
import pandas as pd

image_dir = '/kaggle/input/balanced-datasets/Adasyn_dataset'
df = pd.read_csv('/kaggle/input/balanced-datasets/Adasyn_dataset/labels.csv')
'\ny_one_hot = np.array(df.drop(columns = ["image"], axis = 1))\ny = np.argmax(y_one_hot, axis = 1)\ndf["label"] = y\ndf["label"] = df["label"].astype(str)\ndf[\'image\'] = df[\'image\']+\'.jpg\'\n'