image_output_1.png
import pandas as pd

import scipy.io as sp

import scipy.io as sp
import numpy as np
import pandas as pd
def load_data(file):
    file = sp.loadmat(file)
    load = file['o']
    data = pd.DataFrame(load['data'][0, 0])
    marker = pd.DataFrame(load['marker'][0, 0])
    datadf = pd.concat([data, marker], axis=1)
    datadf.columns = ['Fp1', 'Fp2', 'F3', 'F4', 'C3', 'C4', 'P3', 'P4', 'O1', 'O2', 'A1', 'A2', 'F7', 'F8', 'T3', 'T4', 'T5', 'T6', 'Fz', 'Cz', 'Pz', 'X5', 'label']
    return datadf
datadf = load_data('../input/bigdatasfinger/5F-SubjectB-151110-5St-SGLHand.mat')

data_asli = datadf.head(50000)
print(data_asli.shape)
data_asli.info()