python - Filtering data that is 'water falled' in a spread sheet -


i working data "water falled" (in excel) becomes normal after number of lines in excel.

essentially need script remove empty data rows , keep full rows, location of rows data full variable, , not experienced python not quite sure how filter out "waterfall" rows.

i attached simple example of mean, row 10 script need start keeping rows: excel example

what have written, assuming .py script in same folder data needs filtered, along folder 'archive' , 'downsampled'.

folders = os.listdir('./') folder in folders:         filename = folder         f = open(filename,'r')         lines = f.readlines()         f.close()          shutil.move(folder, './archive')          f_out = open('./downsampled/' + folder + '.csv', 'w')         #filter data.            f_out.close() 

i ended using pandas dropna() feature. thank you.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -