A simple program that analyzes data from a CSV file.
- Counts the number of records
- Calculates the average of a column
- Finds the minimal value of a column
- Finds the maximal value of a column
- Python 3
Clone the repository:
git clone https://github.com/Ricky-Real/csv-analyzerGo into the project directory:
cd csv-analyzerRun the program:
python3 main.pyname,age,city
Peter,21,Bratislava
Martin,25,Kosice
Anna,19,Zilina
Lucia,32,Nitra
Tomas,28,Presov
Number of records 5
Average age: 25.0
Youngest: 19
Oldest: 32
Person Peter is 21 years old and lives in Bratislava.
Person Martin is 25 years old and lives in Kosice.
Person Anna is 19 years old and lives in Zilina.
Person Lucia is 32 years old and lives in Nitra.
Person Tomas is 28 years old and lives in Presov.
The MIT License (MIT). Please see License File for more information.