Creating a DataFrame and selecting columns

Hello,
I am trying to create a dataframe using PyCharm, but when I try to call the columns by their names, like this:

import pandas as pd

pd.read_csv(‘C:/Users/ferna/Documents/Vitor/TCC/tcc/dados_tcc.csv’)
print(df.acidente)

I get the message: AttributeError: ‘DataFrame’ object has no attribute ‘acidente’

What I am doing wrong? Do I need to do something so that the header is recognized?

The csv file is like this:
estacao;data;hora;preciptacao;acidente;num_acidentes;num_dia_da_semana
83229;39814;1200;0;0;0;5
83229;39815;1200;0;0;0;6
83229;39816;1200;0;1;1;7

Hi Vitor, welcome to codecademy!

You should assign the result of your pd.read_csv() to a variable called df!
E.g.
df = pd.read_csv(‘C:/Users/ferna/Documents/Vitor/TCC/tcc/dados_tcc.csv’)