4 ms·
> Compare to Matlab: save(f, 'anyobject'); anyobject=load(f) If you want matlab files in Python you can use `scipy.io.loadmat('file.mat')`. PyTables (built on
by fnord123 10y ago
> Compare to Matlab: save(f, 'anyobject'); anyobject=load(f)
If you want matlab files in Python you can use `scipy.io.loadmat('file.mat')`. PyTables (built on hdf5) is a better solution since the hdf5 format is a lot more flexible than matlab's (ime). But Parquet is looking to be the best solution moving forward as it's gaining a lot of mindshare as the go-to flexible format for data and will be / is used in Arrow.
But really, Matlab is on par with pickles when it comes to serialisation. It's a trap solution.
- auxym 10y agoActually, since Matlab v7.3, .mat files are actually hdf5 files.