Given the file astronauts.csv, we create a function that transforms the data as follows:
a) Shows average missions and average days in space.
b) States % of astronauts in space by country.
c) Shows company that has sent the most missions by country.
d) Writes new dataframe into csv file.