import pandas as pd def fix_client_ids_in_meta(meta_file): # Meta faylni o'qish df = pd.read_csv(meta_file) # ID ustunidagi pathni to'g'irlash def extract_id_from_id_column(id_value): return id_value.split('\\')[-1] # Oxirgi slashdan keyingi qismini ajratib olish df['id'] = df['id'].apply(extract_id_from_id_column) # Yangilangan meta faylni saqlash df.to_csv(meta_file, index=False) print(f"Fixed IDs saved to {meta_file}") if __name__ == "__main__": meta_file = "meta_file.csv" # Meta faylingizning joylashuvi fix_client_ids_in_meta(meta_file)