application_vnd.jupyter.stderr_output_1.png
import numpy as np # linear algebra

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

df_sample = pd.read_csv('/kaggle/input/train.csv')
df_actual = pd.read_csv('/kaggle/input/test.csv')

df_sample['length'] = np.NaN
for i in range(0, len(df_sample['text'])):
    df_sample['length'][i] = len(df_sample['text'][i])
df_sample.length = df_sample.length.astype(int)