Skip to content

Commit 5333a96

Browse files
committed
quick
1 parent b84d838 commit 5333a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapswipe_workers/mapswipe_workers/generate_stats/project_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def normalize_project_type_specifics(path):
3737
if "project_type_specifics" in df.columns.tolist() and not is_numeric_dtype(
3838
df["project_type_specifics"]
3939
):
40+
# convert json string to json dict
4041
df["project_type_specifics"] = df["project_type_specifics"].map(json.loads)
4142

42-
df = df.reset_index()
4343
normalized = pd.json_normalize(df["project_type_specifics"])
4444
normalized.index = df.index
4545
df = pd.concat([df, normalized], axis=1).drop(

0 commit comments

Comments
 (0)