Commit 22e890b0 authored by Isaac AFAMBO's avatar Isaac AFAMBO
Browse files

commit

parent fd250488
......@@ -128,13 +128,7 @@ def generate_dataset_json(filepath: Path, ds_info, dimension_list,note_info):
'dimensions_codes_order': [t[0] for t in dimension_list],
'dimensions_labels': {t[0]: t[1] for t in dimension_list},
'dimensions_values_labels': dim_v_l,
"notes": {
"type": "array",
"description": "Description of the sheets (this is different from description field; see README for more details)",
"items": {
"Info" : note_info,
}
},
"notes": [note_info]
}
write_json_file(filepath, data)
......@@ -178,7 +172,7 @@ def compute_dimension_list(df):
# City Names
"""creation of city_names_dict"""
df_code=pd.Series()
df_code=pd.Series(dtype=object)
df_label=pd.Series(df.columns[1:])
city_names_dict = create_dimenson_dict(df_code,df_label)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment