How to import .dta via pandas and describe data?
<p>I am new to python and have a simple problem. In a first step, I want to load some sample data I created in Stata. In a second step, I would like to describe the data in python - that is, I'd like a list of the imported variable names. So far I've done this: </p>

<pre><code>from pandas.io.stata import StataReader

reader = StataReader('sample_data.dta')
data = reader.data()

dir()
</code></pre>

<p>I get the following error:</p>

<pre><code>anaconda/lib/python3.5/site-packages/pandas/io/stata.py:1375: UserWarning: 'data' is deprecated, use 'read' instead
  warnings.warn("'data' is deprecated, use 'read' instead")
</code></pre>

<p>What does it mean and how can I resolve the issue? And, is <code>dir()</code> the right way to get an understanding of what variables I have in the data?</p>