Get startedGet started for free

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 directory. The data consist of disease extent 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 an object, df?

This exercise is part of the course

Importing Data in Python

View Course

Exercise instructions

df = 'disarea.dta',df = read_stata.pd('disarea.dta'),df = pd.read_stata('disarea.dta'),df = pd.read_stata(disarea.dta)

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise