Jun-24-2022, 08:34 PM
Hi, i have an input on my code and I want that this input pass a int to the query.
For example I type ‘1’ and it search by the number typed.
the code i have
For example I type ‘1’ and it search by the number typed.
the code i have
import pandas as pd df = pd.read_excel("book.xlsx") ser = input("Provide age: ") df_val = df.query(f"id==1")['Name'] print(df_val.values[0])Thanks