// saves all chunks
if len(dataframe_list) > 0:
dataframe_concat = pd.concat(dataframe_list)
//dataframe_concat.to_csv(output_directory + str(building_id) + ".csv")
store.close()
conn.close()
After Change
store = pd.HDFStore(hdf_filename, "w", complevel=9, complib="zlib")
// remove existing building yaml files in module dir
for f in os.listdir(join(_get_module_directory(), "metadata")):
if re.search("^building", f):
os.remove(join(_get_module_directory(), "metadata", f))