Page 56 - IPP-12-2024
P. 56
if ch2==1:
print(result.T)
elif ch2==2:
print(result.columns)
elif ch2==3:
print(result.index)
elif ch2==4:
print(result.shape)
elif ch2==5:
print(result.ndim)
elif ch2==6:
print(result.dtypes)
elif ch2==7:
print(result.size)
elif ch2==8:
break
elif ch == 3:
while(True):
print("Display Records Menu")
print("1. Top 5 Records")
print("2. Bottom 5 Records")
print("3. Specific number of records from the
top")
print("4. Specific number of records from the
bottom")
print("5. Details of a specific Subject")
print("6. Display details of all subjects")
print("7. Exit")
ch3=int(input("Enter choice"))
if ch3==1:
print(result.head())