User Profile
Collapse
-
Thanks for your reminder. I'll use code tag to post code in future. Thanks.... -
Thanks for suggestion.
With help, I managed extract the reading I desire. Below are my codes,
...Code:import sys import re import csv filename = sys.argv [1] myfile = csv.reader(open(filename) , delimiter = ',') d_values = ['288', '305', '347', '389', '437', '483'] for row in myfile: for val in d_values: m = re.match(val + '\.[0-9]*', row[1])Leave a comment:
-
Dear Glenton,
Actually I'm dealing with 10K rows of data in my csv file. I will try your suggestion. Thanks for prompt replied....Leave a comment:
-
How to parse specific numeric data from csv file using python
Good day.
I have series of data in cvs file like below,
1,,,
1,137.1,1198,1. 6
2,159,300,0.4
3,176,253,0.3
4,197,231,0.3
5,198,525,0.7
6,199,326,0.4
7,215,183,0.2
8,217.1,178,0.2
9,244.2,416,0.5
10,245.1,316,0. 4
I want to extract specific data from second column for example 217.1 and 245.1 and have them concatenated into a new file like,...
No activity results to display
Show More
Leave a comment: