Skip to content

Commit

Permalink
doctors: Make composite index instead of sequential id (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb authored Dec 21, 2021
1 parent 3b16ddc commit a1942e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ def convert_to_csv():
doctors.sort_values(by=[*doctors], inplace=True) # sort by all columns

# reindex:
doctors = doctors.apply(list).reset_index()
doctors.drop('index', axis='columns', inplace=True)
doctors.index.rename('id', inplace=True)
doctors.set_index(['doctor','type','id_inst'], inplace=True)

doctors.to_csv('csv/doctors.csv')

Expand Down

0 comments on commit a1942e6

Please sign in to comment.