I have a data frame and one of the columns is a factor:
summary(dados)
Churn
False.:4293
True. : 707
dados$Churn
[993] False. False. False. False. False. False. False. False.
[ reached getOption("max.print") -- omitted 4000 entries ]
Levels: False. True.
I want to filter only the falses. But when I do: dados['Churn'] == 'False.' The code returns me only FALSE.
Should I need to do something different to make a comparison with a dataframe?
Your problem is not reproducible. Addressing the column by its name - its perfectly legit. Please see the code below.