import matplotlib.pyplot as plt
df=pd.read_csv('C:\\Users\\KSHATRI FAMILY\\Documents\\patient.csv')
n=len(df)
while True:
print('PATIENTS RECORD')
print('............')
print('\n')
print('MENU OPTIONS')
print('1.ADD NEW ENTRY')
print('2.MODIFY ANY ENTRY')
print('3.DELETE ANY ENTRY')
print('4.DISPLAY ALL ENTRIES')
print('5.CALCULATE CHARGES')
print('6.DRAW GRAPH')
print('7.EXIT')
print(df)
choice=int(input('Enter your choice(1-7)'))
if choice==2:
#modifying an existing data
r=input('ENTER THE SERIAL NO OF ENTRY TO BE MODIFIED')
c=input('ENTER THE COLUMN NAME THAT TO BE MODIFIED')
value=input('ENTER NEW VALUE')
df.loc[r-1,c-1]=value
print(df[['P_ID','PNAME','AGE','GENDER','DEPARTMENT','DATE_OF_ADMIT','MEDICINES_COST','WARD_CHARGES','VENTILATOR_PRICE','PHN_NO','TOTAL_CHARGES']])