shibashib...@gmail.com wrote:
> Hello
>>
>> I'm very new in python. I have a file in the format:
>>
>> 2018-05-31 16:00:0028.90 81.77 4.3
>> 2018-05-31 20:32:0028.17 84.89 4.1
>> 2018-06-20 04:09:0027.36 88.01 4.8
>> 2018-06-20 04:15:0027.31
Peter Otten wrote:
> shibashib...@gmail.com wrote:
>
>> Hello
>>>
>>> I'm very new in python. I have a file in the format:
>>>
>>> 2018-05-31 16:00:0028.90 81.77 4.3
>>> 2018-05-31 20:32:0028.17 84.89 4.1
>>> 2018-06-20 04:09:0027.36 88.01 4.8
>>> 2018-06-
Peter Otten wrote:
[Practising the bad habit of public soliloquy]
> def parse_datetime(dt):
> return datetime.datetime.strptime(
> dt.replace(".", ":"), "%Y-%m-%d %H:%M:%S"
> )
>
>
> def date_parser(dates, times):
> return numpy.array([
> parse_datetime(date + " " +
On 12/01/19 1:03 PM, Piet van Oostrum wrote:
shibashib...@gmail.com writes:
Hello
I'm very new in python. I have a file in the format:
2018-05-31 16:00:0028.90 81.77 4.3
2018-05-31 20:32:0028.17 84.89 4.1
2018-06-20 04:09:0027.36 88.01 4.8
2
-Original Message-
From: Avi Gross
Sent: Saturday, January 12, 2019 8:26 PM
To: 'DL Neil'
Subject: RE: Python read text file columnwise
I am not sure what the big deal is here. If the data is consistently
formatted you can read in a string per line and use offsets as in line[0:8]
and