Using read_stata to import Stata files
The pandas
package has been imported in the environment as pd
and the file disarea.dta
is in your working directory. The data consist of disease extents for several diseases in various countries (more information can be found here).
What is the correct way of using the read_stata()
function to import
disarea.dta
into the object df
?
This exercise is part of the course
Introduction to Importing Data in Python
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
