Skip to content
Advertisement

Dataframe conditions syntax

I have a mystery error on line 13 of this program. I’m trying to select all the times between 22.00 and 23.00. I’ve tried with and without datetime, with and without apostrophes, but I get the same error every time: “SyntaxError: invalid syntax”

The csv file is 8 columns and ‘complaint_time’ is in the format 12:22:01 AM.

What am I missing…?

Thanks :)

JavaScript

Advertisement

Answer

try this:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement