Skip to content
Snippets Groups Projects
Commit ef315474 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(writer): cover empty cases

parent a5d5741f
No related branches found
No related tags found
No related merge requests found
......@@ -613,6 +613,9 @@ class Writer(BridgeH5):
dset = f[values_path]
dset[()] = df.values
if not len(df): # Only write more if not empty
return None
for name in df.index.names:
indices_path = "/".join((path, name))
f.create_dataset(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment