Read the data in gapminder_gdp_americas.csv
into a variable called americas_data
and display (1) the header and first lines of the file, and (2) its summary statistics.
As well as the .read_csv()
function for reading data from a file, Pandas provides a .to_csv()
function to write DataFrames to files. Applying what you’ve learned about reading from files, write one of your DataFrame to a file called processed.csv
. You can use help to get information on how to use .to_csv()
.
Copy your commands below (do not use any empty lines between the commands)
Note: start with importing the pandas module.