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
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
You can't use that way of indexing as the column name contains /
characters, you should try using:
print(df['12/12/12'])