0

Hey I have a CSV file in it a column named as 12/12/12 and I need to print whole column. Using pandas in python, how can I print it? While I am trying code:

pd=df.12/12/12  
print(pd)   

It shows invalid syntax

UJIN
  • 1,648
  • 13
  • 28

1 Answers1

0

You can't use that way of indexing as the column name contains / characters, you should try using:

print(df['12/12/12'])
UJIN
  • 1,648
  • 13
  • 28