text_html_output_1.png
import os

import os

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

Id = []
import numpy as np
import pandas as pd
import os
for dirname, _, filenames in os.walk('/kaggle/input/cassava-disease-classification/train'):
    for filename in filenames:
        Id.append(os.path.join(dirname, filename))
Id[:5]

sol_train = pd.DataFrame()
sol_train = sol_train.assign(filename=Id)

Id = []
import numpy as np
import pandas as pd
import os
for dirname, _, filenames in os.walk('/kaggle/input/cassava-disease-classification/test'):
    for filename in filenames:
        Id.append(os.path.join(dirname, filename))
Id[:5]

sol_test = pd.DataFrame()
sol_test = sol_test.assign(filename=Id)

sol_test['label'] = sol_test['filename']
sol_test['label'] = sol_test['label'].str.replace('/kaggle/input/cassava-disease-classification/test/', '')
sol_test.head()