I want to convert this file to pandas dataframe.
import pandas as pd
import scipy.io
mat = scipy.io.loadmat('cardio.mat')
cardio_df = pd.DataFrame(mat)
I get this error :
Exception: Data must be 1-dimensional
I want to convert this file to pandas dataframe.
import pandas as pd
import scipy.io
mat = scipy.io.loadmat('cardio.mat')
cardio_df = pd.DataFrame(mat)
I get this error :
Exception: Data must be 1-dimensional