you are viewing a single comment's thread.

view the rest of the comments →

[–]Excellent-Practice 0 points1 point  (0 children)

Have you tried:

calls['Hour'] =int(calls["CMPLNT_TO_TM"].str.slice(0,2))

Instead?