Re: Python read text file columnwise

2019-01-12 Thread Peter Otten
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

Silent data corruption in pandas, was Re: Python read text file columnwise

2019-01-12 Thread Peter Otten
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-

Re: Silent data corruption in pandas

2019-01-12 Thread Peter Otten
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 + " " +

Re: Python read text file columnwise

2019-01-12 Thread DL Neil
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

RE: Python read text file columnwise

2019-01-12 Thread Avi Gross
-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