fossil_app / update_csv.py
Yuxiang Wang
feat:add beit,rise xai;display closest imgs with gallery
0c61c42
raw
history blame
399 Bytes
# import pandas as pd
# # Load the CSV file into a DataFrame
# fossils_pd = pd.read_csv('fossils_paths.csv')
# # Replace '. ' with '' (effectively removing it) in the 'file_name' column
# fossils_pd['file_name'] = fossils_pd['file_name'].str.replace('. ', '', regex=False)
# # Optional: Save the updated DataFrame back to a CSV file if needed
# fossils_pd.to_csv('fossils_paths.csv', index=False)