Electron microscopy
 
PythonML
Delete Column/Row in CSV if Empty or Less Than a Number (Header/Index)
- Python Automation and Machine Learning for ICs -
- An Online Book -
Python Automation and Machine Learning for ICs                                                           http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

Delete the column in a csv file if they are empty or less than a number (or header/index only). Code:
         Upload Files to Webpages
       Input:    
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages

============================================

Delete the row in a csv file if they are empty or less than a number (or header/index only). Code:
         Upload Files to Webpages
       Input:    
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages

============================================

Skip the rows which have empty cells. Code: (Note more code options at page2308)
         Upload Files to Webpages
       Input:    
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages

============================================

Multiple headers in a csv file: Count the number of header rows first and then split a single csv file to multiple csv files. (code): 

         

     Input:    

      Output:  

             

 

 

============================================

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================