Calculation and Data Extraction in csv under Conditions - Integrated Circuits - - An Online Book - |
||||||||
Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
================================================================================= | ||||||||
Find all unique in a column, do calculation from another column, and create a new csv file as output. code: Input: Output: =========================================== Read values in a csv file for calculation and then calculate a mean: code: ================== Print line by line from a CSV file in dict format (these printed keys and values cannot be directly used for math calculation): code: =========================================== Find the maximum in a column in a csv file: code: =========================================== Simple calculation in csv: code: ================================================ Write to a specific cell (loc[]) in a csv file: code: ================================================ Collect the corresponding string elements in column "X" as individual strings when the corresponding elements in column "Y" are "Z". code: Output: ================================================ Subset of dataframe under conditons. code: Output: ================================================
|
||||||||
================================================================================= | ||||||||
|
||||||||