text_html_output_1.png
import pandas as pd

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

import pandas as pd
train_data = pd.read_csv('/kaggle/input/porto-seguro-safe-driver-prediction/train.csv')
test_data = pd.read_csv('/kaggle/input/porto-seguro-safe-driver-prediction/test.csv')

def check_data(data):
    new_dataframe = pd.concat([data.head(5), data.tail(5)], axis=0)
    return new_dataframe
check_data(train_data)