I am a new user of python.my problem is this:
I have three csv files (each is about 15G, and has three columns), and I want to read them into python and get rid of rows which dur=0 my csv is like this.
sn_fx sn_tx dur
5129789 3310325 2
5129789 5144184 1
5129789 5144184 1
5129789 5144184 1
5129789 5144184 1
5129789 6302346 4
5129789 6302346 0
I know I should read line by line , and I try like this :
file='cmct_0430x.csv'
for line in file.xreadlines():
pass
but it seems do not work.
Besides, I do not know how to make these lines transform into a dataframe.
Could someone show me more details about this, I will appreciate you very much!