Skip to content
Snippets Groups Projects
Commit 57e908f5 authored by Jiaying Cheng's avatar Jiaying Cheng
Browse files

update code

parent 49a97374
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ import numpy as np
category = 'Safety (Euro NCAP)'
df = pd.read_csv(f'{category}.csv')
input_file_path = os.path.join('..', 'output', f'{category}.csv')
df = pd.read_csv(input_file_path)
# %%
attribute_list = df['Attribute'].to_list()
......@@ -32,5 +33,6 @@ for model_name in model_name_list:
# %%
information.to_csv(f'{category}_convert.csv')
output_file_path = os.path.join('..', 'output', f'{category}_convert.csv')
information.to_csv(output_file_path)
# %%
......@@ -19,5 +19,6 @@ for category in categories:
elif 'Bidirectional' in category:
category = 'Bidirectional Charging'
category_df.to_csv(f'{category}.csv', index=False)
output_file_path = os.path.join('..', 'output', f'{category}.csv')
category_df.to_csv(output_file_path, index=False)
# %%
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment