在 Python 中读取 Matlab 文件并转换为数据帧

时间:2021-04-05 06:28:05

标签: python dataframe matlab

我尝试将 Matlab 文件导入 python 并形成数据框。

from scipy.io import loadmat
import os.path
path=os.path.abspath(os.getcwd())+"/BatteryDataSet/BatteryAgingARC_25_26_27_28_P1/B0025.mat"
mat = loadmat(path)

然后我尝试转换为熊猫数据框。它不起作用。 有人可以帮我吗?之前的帖子我都看过了,还是没有答案。

非常感谢!

我用Matlab读取.mat文件,是这样的:

enter image description here enter image description here enter image description here

再次感谢!

0 个答案:

没有答案