Coding in Python
I have a CSV file with a column called time
that consists of strings like 12:00:00 AM
and 10:00:00 PM
. I simply want to convert these strings into their corresponding military time representation either by string or integer such that 12:00:00 AM
becomes "0"
or 0
and 10:00:00 PM
becomes "22"
or 22
.
I am new to coding in general so I have no idea what are the correct keywords to search for. Thanks!