This question is very similar to mine:
numpy array: replace nan values with average of columns
However, I was wondering if there is a way to do this with a CSV file that has columns and rows without importing pandas and numpy?
(Sorry, I am currently learning Python)