0% found this document useful (0 votes)
33 views23 pages

Ip Project Final

Uploaded by

L Lawliet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
33 views23 pages

Ip Project Final

Uploaded by

L Lawliet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 23
oe ee 5 Contents 1 Project On: =<------5 Library management project csv:Book1 csv file : Sno. Title ‘Author 1 Don Quixote Miguel de Cervantes 5000 2 Alice in Wonderland lewis Caroll 4570 3 The adventures of huckelberry Finn Mark twain 3750 4 the adventures of Tom sawyer Mark twain 239 5 The Wings of fire Sarojini Naidu 182 6 The Jungle book Rudyard Kipling 4389 7 Harry Potter the soccret stone 1.k.Rowling 6200 8 Gulivers Travel Jonathan Swift 6700 Copies sol Worldrank Nationalrank Rating 1 2 7 a :/documents/Book1.csv 10 95 95 9 a 85 a 78 [ estantetenlenlentenlontonlontntentonlonlanlenlenloelanlontontenlonlonlententenlentenlentestententes | Python code: import matplotlib.pyplot as mp import numpy es np import pandas «= pd df=pd.read_csv("bookl.csv") NAME=['RAHUL', 'rahul', 'AADITYA', 'aaditya', ‘Raditya', 'Rahul'] #Name 1 ") print(* print (‘WELCOME TO My Library") print (* a) LOGIN_NAMESinput ('' "ENTER USERNAME (Case Sensitive)>>>''") print(? y __PASSWORD=input ("ENTER PASSWORD>>>") if LOGIN_NAME in NAME and __PASSWORD=='ADMIN77 print (' print ( print ( print (''"HOW CAN I HELP YOU? \n 1.PRINT MAIN MENU \n 2.EXIT''') print ( ) ELLO', LOGIN_NAME, ‘WELCOME TO MY LIBRARY") ) as CHOICE=input ("ENTER YOUR CHOICE>>')#first main menu if CHOICE=="1': print ('---- print (‘MAIN MENU:') print(' print('''\n 1.DISPLAY LIBRARY DATA \n 2.ACCESS LIBRARY DATA \n 3.MANIPULATE LIBRARY DATA \n 4.DATA ANALYSIS \n 5.DATA VISUALISATION | \n 6.EXIT''') print ( CHOICE_2=input ('ENTER YOUR CHOICE>>')#entering second menu poe ee a ee ee ee ee eee eee eee ee ee ee ee ee: Af CHOICE 2=='1 elit CHOICE_2 print (‘Printing SUBMENU please wait. eh print (* print('| LIBRARY DATA |') print ( print('''| 1.Display all books | \nl| 2.Display first n rows | \n] 3.Display last n rows | \n} 4.fxic 1°'') print(* print () dis = int(input('Enter your choice :'}) print () if dis 1 prine(* print () print (df) elif dis == 2 ) <<<< DISPLAYING ALL BOOKS >>>>---') print ( <<<<¢ FIRST n ROWS >>>>---') print() £ = int(input('Enter number of rows to be displayed:')) print () print (df.head(£)) elif dis == 3: Print ('=--c>>>---') print () 8 = int(input('Enter number of rows to be displayed :')) print () print (df.tail(s)) elif dis == 4: print ("THANKS FOR USING') print ( ) print (‘| ACCESS DATA |") print ( print('''| 1.Individual columns | \n| 2.Hultiple columns | \nl 3.eubset | \nl 4.Individual rows | \nl 5.0 le rows | \nl €.Exic 1''') print (* print () a = int (inpuc('Enter your choice :*)) print (df.colums) print () ai = input (‘Enter the COLMA to be accessed:') ai= ai.capitalize() print () print ( i print ('<>>>>>>") print ( ) print (df[ai}) poe ee ee ee eee ee eee eee eee clita print (df.colums) print () ac = int (input (‘Enter the number of COLUMNS to be accessed:')) n=O for 4 in range(ac): = input (‘Enter the column name:') 5 = s.capitalize() n.append (3) print () print(’ oy print (' ACCESSING MULTIPLE COLUMNS >>>>>") print (* ty print (df[n}) ifas= 3: print (d£,columns) print () sl = int(input('Enter the starting row index:')) 82 = int (input (‘Enter the ending row index:')) 53 = input(‘Enter the starting column 84 = input (‘Enter the ending column:') 33 = s3.capitalize() 84 = 84.capitalize() print () print ( print(*} SUBSETS 1') print ( print (df.1loc[s1:s2,3:94]) 4: print (df.columns) print () ) il = int(input (‘Enter the row index to be accessed: ')) print () print(* print('| ACCESSING INDIVIDUAL ROi print(* print (df.loc[il]) elifa == 5: print (df.columns) print () ) il = int (input (‘Enter the starting row index:')) print () 42 = int (input (‘Enter the ending row index:')) print () print ( rint('| ACCESSING MULTIPLE ROWS |") print ( print (d£,loc[ii:42]) else print ("Invalid Choice") elif CHOICE_2=='3 print ('-- print (‘| Data Manipulation |') elif CHOICE 2=="3': print('| Data Manipulation |") print (* print ( 1 1.Delete | \n 2.Rename | \n] 3.Update | \nl 4.Exic 1''') print (*— print () man = int (input (‘Enter Your Choice:')) if man == 1 print(* print('| DELETE |') peinc(’ print('''| 1.Delete Single Row | \n] 2.Delete Multiple rows | \n 3.Delete Single column | \n 4.Delete Multiple column | \n] S.Exic y''") print (’ print{) Pp = int(input('Enter your choice:')) a] inter the index number of the row to be yy delete = df.drop(i) print (delete) Print ("ROW DELETED") elif d == 2: print () x = int(input(*Enter the number of rows to be deleted:')) print) for i in range(r): xe = int (input ("Enter the row index to be deleted:')) delete = df.drop(re) print (delete) print ("ROWS DELETED") elif d == 3: print (df.columns) print () ¢ = inpuc('Enter the column name to be deleted: ¢ = c.capitalize() delete = df.drop(c,axis = 1) print (delete) Print (*COLUMN DELETED") elitdas4 print (df.columns) print () © = Snt(input('Enter che number of columns to be deleted:')) print() for 4 in range(el xe = input(‘Enter the column name to be deleted:') xe = re.capitalize() delete = df.drop(re,axis = 1) print (delete) print (*COLUMMS DELETED*) posse ee ee eee eee eee ee eee eee ose eee a ee ee ee ee ee ee 5 print (‘INVALID CHOICE") elif man = 2: ce (RENAME. | +) print (! rint('**| 1.Rename single column | \n| 2.Rename multiple column | \nl 3.zxae it) print (* print () E = int(input(*Enter your choice:')) atresa: print (df.columns) print () rl = input('Enter the column to be renamed:") rl = rl.capitalize() print () 2 = input('Enter the new name co be puts") x2 = r2.capitalize() xe = df.rename(columns = (x1:r2},inplace = False) print (re) Print (‘COLUMN RENAMED') elitr == 2: print (df.columns) print () re = int (input ( renamed: '**)) die 0 for 4 in range(re): Enter the number of columns to be x = input (‘Enter the column to be renamed:') x = x.capitalize() Print () y= inpus (‘Enter the new name to be put y = y.capitalize() xe2 = df.rename (columns = {x:y},inplace = False) print (re2) print (‘COLUMNS RENAMED") el print ("INVALID CHOICE') elif man == 3 print (*~ print('| UPDATE |') print (* print('''| 1.Updace Particular value | \n] 2.Exic [''') print (*~ print () u = int (input (‘Enter your choice:')) fus=.: print (df.columns) print () ul = input (‘Enter column name ul = ul.capitalize() x = int(input (‘Enter the index auber of row:')) print () u2 = input(*Enter the new value:') 3f type(u2) == int: u2 = int(u2) n =df£.at[r,ul] = 2 poe ee a ee ee a ee 5 I els n= df.at[r,ul) = u2 print (n) print (df) print ("COLUMN UPDATED!) else: print () print ("INVALID CHOICE") e1if CHOICE_2=' print (* print ('| DATA ANALYSIS |') princ(? print('''| 1.Minimum rated books | \nl 2.Meximum rated books | \n] 3.Information regarding data | \nl 4.Sort 1 | \n] 5.Exit 1'* print(! int (} fan a: print (df.columns) print () print (*TO DISPLAY THE MINIMUM RATED BOOKS") print () m = input (‘Enter the colum nam m = m.capitelize() $y print () print ("Min rating elif an = 2: Print (df.colurns) print () print (‘TO DISPLAY THE MANIMUM RATED BOOKS") Print() m = input (‘Enter the colum nam m = m.capitalize() print () print ("Max Valu elif an == 3: print (‘TRE INFORMAT: print () print (df-info()) elit an == 4 * Af {m] -min()) ) Of [m] «max ()) ON REGARDING DATA’ print(? print ("| SORT BOOKS |*) print (" print(*''| 1,.Sort in Ascending order | \n| 2.Sort in Descending order | Nal 3.Exit 11°") print ("= print () Z = int (input (‘Enter your choice:')) afas print (d£.columns) print () print ("FOR SORTING IN ASCENDING ORDER‘) print () 8 = Anput (‘Enter the column name:') Poses SSS SS SSS SSS SSS SS Se I print () print (df.sort_values(s,inplace = False) print () print (‘SORTED IN ASCENDING ORDER") elif z == 2: print (df-colums) print () print ("FOR SORTING IN DESCENDING ORDER‘) print () g = input (‘Enter the column name = s.capivalize() print () print (df.sort_values(s,inplace = Faise,ascending =False)) print () print ("SORTED IN DESCENDING ORDER") else: print ("INVALID CHOICE*) elif an == 5: print (‘THANKS FOR USING') d eu print ("INVALID CHOICE") elif CHOICE_2=='5': print(* print (‘| DATA VISUALISATION |) print ( print(**'| 1.PRICE OF BOOKS | \n| 2.RATING OF BOOKS | \nl 3.EXET 1''") print (* print () v = int (input ('Enter Your Choice:')) print () itvesa. print ( print ('| PRICE OF BOOKS |") print ( print(***| 1.Bar Chart | \n| 2-line chart | \n) 3.Exic 1°**) Ant (input (‘Enter your choice:'}) af ap si: df.plot-bar('Title', 'Price',color ="blue',edgecolor = *black') mp.title(‘NO OF COPIES SOLD IN INDIA‘) mp.xlabel (AUTHOR NAME*) mp.ylabel (* PRICE") mp. show () elif ap w= 2: d£.plot('Titie', 'Price',color ="biue', 1 mp,title (‘PRICE OF BOOKS SOLD IN INDIA') mp.xlabel (AUTHOR NAME') mp.ylabel (*PRICE') Rp. show() dashed") else int (‘INVALID CHOICE") poe a ee ee a ee 5 i a i \nl Nal Sexier 111") peine(* print () choice = Ant (inpuc(‘Enter your choice:')) 2= choice == E.plov-bar (‘Title", *Racing', color mp.title(*ZEST RATED BOOKS OF ALLTIME") mp.xlabel (20 mp. ylabel ("RATT mp.show() elif choice mp.hist (d£['Price'],coloz = ‘o: mp.title('NO OF COPIES SOLD‘) Rt) mp.xlabel (‘FRICE') mp. ylabel ("NO mp. legend () Ep-show() elif choice = 3: pass COPIES SOLD") ens: print (‘INVALID CHOICE") cHorce_2: print (‘THIS FOR USING') Print (*%: a elie CHOICES=!2": rine (‘THANKS FOR USING') print (*X- Lif LOGIN NAME not in NAME:# checking whether name present or not print (PUSER NOT RECOGNISED BAD REQUEST: (*) e1:f __PASSWORD!="ADMINTT*:#checking whether password matches or not. pine ("PASSWORD WRONG IRY AGAIN LATER!!!*) e1se: print ( blue", edgecolor = ‘biack") ge" ,Label. ** PRICE" ,edgecoloy = ‘biack*) pose == eee eee Output: 2.EXIT MAIN MENU: 6.EXIT 1 4.Exit 1 WELCOME TO My Library | LIBRARY DATA | ENTER USERNAME (Case Sensitive) >>>RAHUL ENTER PASSWORD>>>ADMIN77 HELLO RAHUL WELCOME TO MY LIBRARY HOW CAN I HELP YOU? 1.PRINT MAIN MENU ENTER YOUR CHOICE>>1 1.DISPLAY LIBRARY DATA 2.ACCESS LIBRARY DATA 3.MANIPULATE LIBRARY DATA 4.DATA ANALYSIS 5.DATA VISUALISATION ENTER YOUR CHOICE>>1 Printing SUBMENU please wait.. | 1.Display all books | | 2.Display first n rows | | 3.Display last n rows | Enter your choice :1 See eee eee eee eee Accessing library data ENTER YOUR CHOICE>>2 ACCESS DATA | LeIndividual columns | | 2.Mulciple columns | | 3.oubsec 1 | 4.tndividual rows | I S.Multiple rows | 1 6.Exie | | Enter your choice || ---<>>>--- I ! S.no. Title ... Rating Price Io 1 Don Quixote ... 10.0 450 Va 2 Alice in Wonderland 3.5 300 |p 3 The adventures of huckelberry Finn 9.5 350 I}3 4 the adventures of Tom sawyer 9.0 250 14 5 The Wings of fire 8.0 270 15 é The Jungle book 8.5 320 le 7 Harry Potter the soccret stone 8.0 115 1\7 8 Gulivers Travel 7.5 260 I [| (8 rows x 8 columns] I |fnter your choice :2 J |-<>>>--- 1 ] [Enter number of rows to be displayed :3 U S.no. Title ... Rating Price iis 6 The gungle book 8.5 320 é 7 Harry Potter the soccret stone 8.0 115 1 7 8 Gulivers Travel 14. 7.5 260 I | (3 rows x 8 columns] 1 1 I 1 1 1 1 1 1 1 ! 1 I 1 1 1 pce ee ee ee ee ee ee ee eee eee [ teslantentenlonlentenlontonlontantentenlonlanlenlenloslanlonlonlenlantonlententenlentenlntostentontes | Enter your choice :1 Index(['S.no.', ‘Title’, ‘Author’, ‘Copies sold', 'Worldrank', 'Nationalrank', ‘Rating’, 'Price'], deype="object") Enter the COLUMN to be accessed:TITLE <<<< ACCESSING INDIVIDUAL COLUMN >>>>>>> Don Quixote Alice in Wonderland The adventures of huckelberry Finn the adventures of Tom sawyer The Wings of fire The Jungle book Harry Potter the soccret stone Gulivers Travel Name: Title, deype: object aaumeNrot Enter your choice :2 Index([{'S.no.', "Title ‘Author', 'Copies sold', 'Worldrank', 'Nationalrank', ‘Rating’, ‘Price'], dtype="object') Enter the number of COLUMNS to be accessed:2 Enter the column name:AUTHOR ACCESSING MULTIPLE COLUMNS >>>>> Author Miguel de Cervantes lewis Caroll Mark twain Mark twain Sarojini Neidu Rudyard Kipling J.K.Rowling Jonathan Swift ex the column name:TITLE ACCESSING MULTIPLE COLUMNS >>>>> Author Tatie 0 Miguel de Cervantes Don Quixote 1 lewis Caroll Alice in Wonderlend 2 Mark twain The adventures of huckelberry Finn 3 Mark twain the adventures of Tom sawyer 4 Sarojini Naidu The Wings of fire 5 Rudyard Kipling The Jungle book é J.K,Rowling Harry Potter the soccret stone 2 Jonathan Swift Gulivers Travel poe ee ee ee ee eee eee Enter your choice :3 Index(['S.no.', ‘Title’, ‘Author’, ‘Copies sold‘, 'Worldrank', 'Nationalrank', ‘Raving’, 'Price'], dtype=tobject") Enter the starting row inde: Enter the ending row index:3 Enver the starting column:AUTHOR Enver the ending column:WORLDRANK | SUBSETS | Author Copies sold Worldrank 1 lewis Caroll 4570 4 2 Mark twain 3780 5 3 Mark twain 2239 21 Enter your choice :4 Index(['S.no.', 'Title', ‘Author, ‘Copies sold", ‘Worldrank', 'Nationalrenk', ‘Rating’, 'Price'}, dtype="object') Enter the row index to be accessed: 2 | ACCESSING INDIVIDUAL ROW | S.no. 3s Title The adventures of huckelberzy Finn Author Mark twain Copies sold 3750 Worldrank 5 Nationalrenk 7 Rating 8.5 Price 350 Name: 2, dtype: object Enter your choice Index(['S.no.', ‘Title', ‘Author’, ‘Copies sold’, ‘Worldrank', ‘Nationalrank' ‘Rating’, 'Price'], deype=tobject') Enver the starting row indextl Enter the ending row index:4 | ACCESSING MULTIPLE ROWS | S.no. Title ... Rating Price 1 2 Alice in Wonderland ... 9.5 300 2 3 The adventures of huckelberry Finn .., 9.5 350 3 4 the adventures of Tom sawyer ... 9.0 250 4 5 The Wings of fire .., 8.0 270 [4 rows x & columns} poe ee a ee 5 1 |- ENTER YOUR CHOICE>>3 | Data Manipulation | | i.Detete | | 2.Rename | 1 3.Update | DELETE | 1.Delete Single Row | | 2.Delete Multiple rows | | 3.Delete Single column | | 4.Delete Multiple column | 1 S.Exic | ! I I 1 I I I I I I 1 I I I I 1 1 I I ! ! I 1 1 1 Vy} s.no. 1 1 1 1 1 1 1 1 1 1 I ! 1 1 1 1 I ! I I 1 1 I Enter your choice:1 Enter the index number of the row to be deleted:2 Title ... Rating Price ° 1 Don Quixote . 10.0 450 1 2 Alice in Wonderland 5.5 300 3 4 the adventures of Tom sawyer 9.0 250 4 5 The Wings of fire 8.0 270 5 6 The gungle book 8.5 320 é 7 Harry Potter the soccret stone ... 8.0 115 7 8 Gulivers Travel ... 7.5 260 (7 rows x ® columns] ROW DELETED Enter your choice:2 Enter the number of rows to be deleted:2 Enter the row index to be deleced:1 S.no. Title Price ° 1 Don Quixote 450 2 3. The adventures of huckelberry Finn 380 3 4 the adventures of Tom sawyer 250 4 5 The Wings of fire 270 5 é The Jungle book 320 é 7 Harry Potter the soccret stone us 7 e Gulivers Travel 260 (7 rows x & columns} ROWS DELETED Po one Se ee eee ee eee eee eee eee ]__ [Baez the row index co be deleved:2 I S.no. Title ... Rating Price ° a Don Quixote :.. 10.0 450 ! 2 2 Alice in Wonderland 8.8 300 I 3 4 the adventures of Tom sawyer ... 9.0 250 I ‘ 8 The Wings of fire 8.0 270 I 5 6 The gungle book 8.5 320 I 6 7 Harry Potter the soccret stone 8.0 1158 7 8 Gulivers Travel «., 7.5 260 [7 xows x 8 columns] ROWS DELETED Enter your choice:3 Index(['S.no.', 'Title', Author‘, ‘Copies sold’, ‘Worldrank', ‘Nationalzank', +Racing', ‘Price'], deype="object") Enter the column name to be deleted:PRICE S.no. Title ... Nationalrank Rating ° 2 Don Quixete ... 1 10.0 2 2 Alice in Wonderland 2 3.5 2 3 The adventures of huckelberry Finn 7 2.5 3 4 the adventures of Tom sawyer 22 +0 4 5 The Wings of fire 25 8.0 5 é The Jungle kook 50 8.5 6 7 Harry Fotter the soccret stone 60 8.0 7 8 Gulivers Travel 20 2s [8 rows x 7 columns) COLUMN DELETED Enter Your Choice | RENAME | 1 2.Rename single column | | 2.Rename multiple column | 1 3-Exic | Enter your choice:1 Index(['S.no.', 'Title', Author", ‘Copies sold', ‘Worldrank', ‘Nationalrank', ‘Rating’, 'Price'], dtype=! object") Enter the column to be renamed: TITLE Enter the new name to be put:BOOK TITLE S.no. Rook title Price ° 1 Don Quixote 480 2 2 Alice in Wonderland 300 2 3 The adventures of huckelberry Finn 350 3 4 the adventures of Tom sawyer 250 4 5 The Wings of fire 270 5 6 The dungle book 320 é 7 Harry Potter the soccret stone us 7 @ Gulivers Travel 260 [@ rows x 8 columns] COLUM RENAMED a r Enter your choice:2 71 Tndex({'S:no-', tTatle', ‘Avthor!, ‘Copies sold, ‘Worldcat’, ‘wattonetzent, mowing), 'eeace'l, ute Enter the number of columns to be enamed: Enter the coluza to be renamed: PRICE Enter the new name to be put:NEW PRICE Sino. Title ... Rating New price ° 2 Don Quixote ... 10.0 450 1 2 Alice in Wonderland 8.5 309 2 3. The adventures of huckelberry Finn 5.5 350 3 4 the adventures of Tom sawyer 5.0 280 4 5 The Wings of fire 8.0 270 5 € The Jungle book es 320 é 7 Harry Potter the soceret stone 2.0 us 7 e Gulivers Travel 1S 260 [e xows x 8 columns} COLTS RENAMED Enter the column to be renamed: TITLE Enter the new name to be put:B00K TITLE Seno. Book title ... Rating Price ° 2 Don Quixote ... 10.0 450 1 2 Alice in Wonderland... Ss 300 2 3. The adventures of huckelberry Finn 75 350 3 4 the adventures of Tom sawyer... 5.0 250 a 5 The Wings of fire ... £0 270 5 € The Jungle book «1. 8.5 320 6 7 Harry Potter the soceret stone -.. 8.0 115 7 e Gulivers Travel ... 7.5 260 [8 rows x & columns] COLUHNS RENAMED Enter Your Choice:3 | UPDATE 1 | 1.Update Particular value | | 2.exie 1 Enter your choice:1 Index([*S.no.", ‘Title', ‘Author', ‘Copies sold‘, ‘Worldrank‘, ‘Nationelrank', *Rating’, ‘Price'], atype="object") Enter column name :TITLE Enter the index muber of row:2 Enter the new value:SLEEPING BEAUTY SLEEPING BEAUTY S.ne. qae1e Rating Price ° 2 Don Quixote :.. 10.0 450 1 2 Rice in Wonderland S300 2 3 ‘SLEEPING BEAUTY 3 380 3 4 che adventures of Tom eauyer 0 250 4 5 The Wings of fire 8.0 270 5 é The Jungle book 2.5 320 6 7 Marry Potter the scceret atone ++, 8.0 118, 7 e Gulivers Travel ©.. 7.5 260 [8 rows x & columns) coumel uepATED alee elle eel le eee ate eel lalate antonella | Enter your choice :6 Invalid choice ENTER YOUR CHOICE>>4 | DATA ANALYSIS | | 1.Minimum rated books | | 2.Maximum rated books | | 3.Information regarding data | 1 4.Sore | 1 S.Exic | Enter Your Choice:1 Index(['S.no.', ‘Title', 'Author', ‘Copies sold’, ‘Worldzank*, ‘Nationalrank', ‘Rating’, 'Price'], dvype=" object") TO DISPIAY THE MINIMUM RATED BOOKS Enter the column name:WORLDRANK Min rating: 1 Enter Your Choice:2 Index(['S.no.', 'Ticle', ‘Author, "Copies sold’, ‘Worldrank', ‘Nationalzank', ‘Rating’, 'Price'], deype=" object") TO DISPLAY THE MAXIMUM RATED BOOKS Enter the column name:NATIONALRANK Max Value: 80 Enter Your Choice:3 ‘THE INFORMATION REGARDING DATA RangeIndex: & entries, 0 to 7 Data columns (total @ columns): # Column 9 S.no. @ non-null anced 1 Title 8 non-null object 2 Author @ object 3 Copies sold 2 antes ¢ Worlarank = 2 ances 5 Nationalzenk & anced & Rating 8 floated 7 Brice 8 antes deypes: floaves(1), intés(S), object (2) memory usage: 644.0+ bytes None Enter Your Choicer4 71 | 1.Sort in Ascending order | | 2.Sort in Descending order | | 3-Exit | Enter your choic Index([*S.no.", ‘Title’, ‘Author’, ‘Copies sold", ‘Wc vRating', ‘"Price'], deypesobject") rldrank', ‘Nationalrenk', FOR SORTING IN ASCENDING ORDER Enter the column name:TITLE S.no. Title ... Rating Price 1 2 Alice in Wonderland . 9.5 300 ° 1 Don Quixote . 10.0 450 1 8 Gulivers Travel 7.5 260 6 7 Harry Potter the soceret stone . 8.0 115 8 é The Jungle book ... 8.5 320 4 5 The Wings of fire . 8.0 270 2 3 The adventures of huckelberry Finn . 9.5 350 3 4 the adventures of Tom sawyer ... 9.0 250 [8 rows x @ columns] SORTED IN ASCENDING ORDER | SORT BOOKS | | 1.Sort in Ascending order | | 2.S0rt in Descending oxder | 1 3.Exie 1 Enter your choice:2 Index({*S-no.', ‘Titie', ‘Author', ‘Copies sold", ‘Worldrank', ‘Nationalrank', ‘Racing’, 'Price'), avype=*object') FOR SORTING IN DESCENDING ORDER Enter the column name:TITLE S.no. ticle Rating Price 3 che adventures of Tom sauyer 5.0 280 2 3. The adventures of huckelberry Finn. 8.5 380 4 5 The Wings of fire ... 8.0 270 5 é The Jungle book 8.5 320 é 7 Harry Potter the soccrer stone 2.0 115 7 8 Gulavers Travel 11, 7.5 260 ° 2 Don Quixote .., 10.0 450 1 2 Alice in Wonderland $.5 300 [8 rows x @ columns] SORTED TT DESCENDING ORDER pct no oe ee 5 5 5 ee 5 5-5 5 === ---- ------ lanew, lm Price auoys yoo ¢ uy Jo same uutg A NO OF COPIES SOLD IN INDIA pues ajoxin 400 300 200 100 ald bee ee ee a a a a a a a a a a a = = = = == poses eee eee ee Enter Your Choice:1 1 PRICE OF BOOKS | Enter your choice:2 PRICE OF BOOKS SOLD IN INDIA ‘on Gute Alken Wienoedaaventues of huctibenyefbnes a Yom sae wings offre The jungle Bay Peier the soccet stooalversTavel BEST RATED BOOKS OF ALLTIME an eee ee eee ee eee eee eee I NO OF COPIES SOLD ! 3.0 = price I _ I I ! ! 3 1 & 1 a I 5 ! 8 1 6 ! : ! ! I I I 1 I 1 I I I ! ! 1 ENTER PASSWORD>>>ASMIN77 I USER NOT RECOGNISED BAD REQUEST: ( 1 >>>|| 1 I I 1 t 1 1 1 I I 1 1 I N I an { n 1 Y i 1 & I “Yo =. og 1 > I ou I Bi §8s : EY yas — . I S | mit I =i 882 csi OZa ! mo i eo e@ @ i I 1 1

You might also like