Find Jobs
Hire Freelancers

I need a coder

$10-30 USD

Lezárt
Kiadva ekkor: majdnem 3 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
I have a list of numpy datetime64 objects, like so: time_list_array = [[login to view URL]('2021-01-01T07:23:00.000000000'), [login to view URL]('2021-01-01T07:25:00.000000000'), [login to view URL]('2021-01-01T07:26:00.000000000'), [login to view URL]('2021-01-01T07:27:00.000000000'), [login to view URL]('2021-01-14T16:27:00.000000000')] I want to loop through this list and modify it in a specific way. Essentially, any time the difference between two datetime64 objects next to each other in the list is more than one minute, duplicate that datetime64 object and place it after the original one in the list. Any time the difference between two datetime64 objects next to each other in the list is equal to a minute, move on to the next datetime64 object in the list until you come across a difference that is more than a minute. Then, take the first datetime64 object and the last datetime64 object in that range and place them next to each other. So, my final time_list_array would look like this: time_list_array = [[login to view URL]('2021-01-01T07:23:00.000000000'), [login to view URL]('2021-01-01T07:23:00.000000000'), [login to view URL]('2021-01-01T07:25:00.000000000'), [login to view URL]('2021-01-01T07:27:00.000000000'), [login to view URL]('2021-01-14T16:27:00.000000000'), [login to view URL]('2021-01-14T16:27:00.000000000')] Notice how the 1/1/21 7:23:00 datetime64 object was duplicated and added directly after the original. Then, the range from 1/1/21 7:25:00 through 1/1/21 7:27:00 in the original array was shortened to just a start time and end time. Finally, 1/14/21 at 16:27:00 was once again duplicated and added directly after the original. This needs to be formatted in this way to be exported to a txt file and consequently used in an online software program that only accepted txt files in a very specific format. I have tried to find the time delta of time_list_array like so: time_list_array_delta = [login to view URL](time_list_array) And then find the difference in minutes: minutes = time_list_array_delta.total_seconds()/60 But keep getting an error: AttributeError: '[login to view URL]' object has no attribute 'total_seconds' I may be totally off base with my methods, however. Any help would be much appreciated!
Projektazonosító: 29892242

A projektről

8 ajánlat
Távolról teljesíthető projekt
Aktiválva: 3 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
8 szabadúszó adott átlagosan $28 USD összegű árajánlatot erre a munkára
Felhasználó avatár
Dear employer, Hi I can develop the Python code to organize your list of numpy datetime objects based on your requirements. I am an expert in this field. Would you please send me a message so that we can talk about it more accurately? I am a computer programmer with more than 10 years of working experience using Python, C#, VB.Net, C++, MATLAB, FORTRAN, etc. I can develop your required code with the highest quality and the lowest price. Believe me one time and you will start hiring me as a long term employee. Regards, Abbas
$30 USD 1 napon belül
5,0 (19 értékelés)
4,5
4,5
Felhasználó avatár
Heyy I am python coder and I have experience of more than 5years.I have read your description and would like to work for you.I have already implemented many algorithms and developed many games and management systems using oop and data structures concept and I would like to work for you also Message me so that we can start this Regards Hamza
$20 USD 1 napon belül
5,0 (22 értékelés)
4,2
4,2
Felhasználó avatár
Hi, iam dev Python and i can help you with your logical probleme contact me for more details Best regards
$30 USD 1 napon belül
4,9 (5 értékelés)
3,1
3,1
Felhasználó avatár
I am experienced with both pandas and numpy and I will be happy to help you with your problem. Feel free to PM me.
$20 USD 2 napon belül
4,6 (1 értékelés)
1,5
1,5
Felhasználó avatár
I am willing to help you to fix the error and get the desired txt output till the end. I think I have enough python experience to solve this. ** Will continue till the end
$40 USD 1 napon belül
5,0 (1 értékelés)
1,0
1,0
Felhasználó avatár
Hello I have good experience using python with artificial intelligence and using pandas and numpy you can contact me for further info
$30 USD 2 napon belül
5,0 (2 értékelés)
0,4
0,4
Felhasználó avatár
I can make this coding for you in 2 days. check out our website for reference and skills. crystal
$30 USD 2 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

UNITED STATES zászlója
Oklahoma City, United States
0,0
0
Tagság kezdete: ápr. 15, 2021

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.