Page 60 - IPP-12-2024
P. 60

a=input("Enter column name which needs
               to be deleted")

                                      result.drop([a],axis=1,inplace=False)
                                      print("Column Temporary deleted")

                                   elif ch5==3:

                                       break

                       elif ch == 6:

                           while(True):

                                           print("Search Menu")

                                           print("1. Search for the details
               of a specific subject")

                                           print("2. Search details of a
               specific as per a specific column heading")

                                           print("3. Exit")

                                           ch6=int(input("Enter choice"))
                                           if ch6==1:

                                                   st=input("Enter the name
               of the subject whose details you want to see")

                                                   print(result.loc[st])

                                           elif ch6==2:

                                                  col=input("Enter
               column/heading name whose details you want to see")
                                                  print(result[col])

                                           elif ch6==3:

                                                   break

                      elif ch == 7:

                           while(True):
                               print("Data Visualization Menu")

                               print("1. Line Plot")

                               print("2. Vertical Bar Plot")

                               print("3. Horizontal Bar Plot")

                               print("4. Histogram")
   55   56   57   58   59   60   61   62   63   64   65