79815991

Date: 2025-11-10 19:13:20
Score: 1
Natty:
Report link

You can just read the input, convert it to an integer and use it directly as the column name.
Here is a simple example:

df = pd.DataFrame({1: [10, 20, 30],2: [40, 50, 60]})

x = int(input("enter your value here: ")) 

A = df[x]

print(A)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kasra Khaksar