Simple Python Error Script

Lengkap Disiarkan 5 tahun lepas Dibayar semasa penghantaran
Lengkap Dibayar semasa penghantaran

Hello,

I have a simple pandas data frame with 'Time' in HH MM SS format. All I want to do is convert the entire column into how many minutes that would be. I have a function:

def time_to_minutes(time_str):

try:

hours, minutes, seconds = [login to view URL](':')

except ValueError:

return -1

return int(hours)*60 + int(minutes) + int(seconds)/60.0

time_to_minutes(df['Time'].iloc[:0])

It works fine on ONE row of the data frame. But does not work on the entire series of the data frame. Need help!

Python Kejuruteraan Perisian

ID Projek: #17264093

Tentang projek

10 cadangan Projek jarak jauh Aktif 5 tahun lepas

Dianugerahkan kepada:

mikeitexpert

I have extensive experience in python datetimes I can do the conversion in the blink of an eye. I can other data processing too might you need that.

$10 USD dalam sehari
(70 Ulasan)
5.5

10 pekerja bebas membida secara purata $21 untuk pekerjaan ini

vano101

Hello. It looks as elementary task can be done in couple of hours of pure working time Relevant Skills and Experience I have over 2 years of experience with python programming language

$15 USD dalam sehari
(1029 Ulasan)
7.6
WebInfoSolutions

Can u send the complete code to compile my side? I will need this for unit testing also my side.........

$35 USD dalam sehari
(39 Ulasan)
6.2
chtalhaanwar

hi, i can write a script to convert time (hh mm ss) in all columns to total time

$25 USD dalam 3 hari
(0 Ulasan)
0.0
puriajaya

Hi, I am Ajaya, data science researcher, professionally expert in Python-Numpy and Pandas. I would like to place bid on this project as it cover my current work area. Hope you will grand this me. best Ajaya

$15 USD dalam 2 hari
(0 Ulasan)
0.0