Debug CRISP naming

This commit is contained in:
Yam ZhengLim
2022-12-26 16:50:22 +08:00
parent d28dbff76a
commit 827499a309
4 changed files with 15 additions and 12 deletions
+3 -2
View File
@@ -28,9 +28,10 @@ def change_to_current_directory():
os.chdir(script_dir)
def json_normalize_to_df(json):
def json_normalize_to_df(json, sep='.'):
sep_char = sep
try:
df = pd.json_normalize(json)
df = pd.json_normalize(json, sep=sep_char)
return df
except Exception as e:
print(e)