mirror of
https://github.com/firmai/financial-machine-learning.git
synced 2026-08-20 22:38:09 +00:00
changed the wiki file names
This commit is contained in:
+3
-1
@@ -47,9 +47,11 @@ def generate_wiki_per_category(output_path):
|
||||
formatted_df['repo_status'] = formatted_df['repo_status'].apply(lambda x: get_wiki_status_color(x))
|
||||
formatted_df['rating'] = formatted_df['rating'].apply(lambda x: get_wiki_rating(x))
|
||||
|
||||
output_path_full = os.path.join(output_path, '{}.md'.format(category))
|
||||
clean_category_name = category.lower().replace(' ', '_')
|
||||
output_path_full = os.path.join(output_path, '{}.md'.format(clean_category_name))
|
||||
with open(output_path_full, 'w') as f:
|
||||
f.write(formatted_df.to_markdown(index=False))
|
||||
print('wiki generated in [{}]'.format(output_path_full))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user