Page 55 - IPP-12-2024
P. 55
print("6. Search specific row/column")
print("7. Data Visualization")
print("8. Data Analytics")
print("9. Exit")
ch = input("Enter your choice: ")
try:
ch = int(ch)
except ValueError:
print("Please enter a valid integer.")
continue
if ch == 1:
result = pd.read_csv("result CSV FilePath",
index_col=0)
print(result)
elif ch in range(2, 9):
if result is None:
print("No data loaded. Please use option 1 to load
data first.")
continue
if ch == 2:
while (True):
print("Dataframe Statistics Menu")
print("1. Display the Transpose")
print("2. Display all column names")
print("3. Display the indexes")
print("4. Display the shape")
print("5. Display the dimension")
print("6. Display the data types of all
columns")
print("7. Display the size")
print("8. Exit")
ch2=int(input("Enter choice"))