We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84d838 commit 5333a96Copy full SHA for 5333a96
mapswipe_workers/mapswipe_workers/generate_stats/project_stats.py
@@ -37,9 +37,9 @@ def normalize_project_type_specifics(path):
37
if "project_type_specifics" in df.columns.tolist() and not is_numeric_dtype(
38
df["project_type_specifics"]
39
):
40
+ # convert json string to json dict
41
df["project_type_specifics"] = df["project_type_specifics"].map(json.loads)
42
- df = df.reset_index()
43
normalized = pd.json_normalize(df["project_type_specifics"])
44
normalized.index = df.index
45
df = pd.concat([df, normalized], axis=1).drop(
0 commit comments