擅长:python、mysql、java
<p>您还可以使用<code>Dataframe()</code>方法和<code>tolist()</code>方法:</p>
<pre><code>newdf=pd.DataFrame(data=df['Adress'].tolist())
</code></pre>
<p>最后使用<code>concat()</code>方法:</p>
<pre><code>newdf=pd.concat((df,newdf),axis=1)
</code></pre>
<p>现在,如果您打印<code>newdf</code>,您将获得:</p>
<pre><code> name Adress city district
0 Joan {'city': 'Rio', 'district': 'Leme'} Rio Leme
1 Joan {'city': 'Sao Paulo', 'district': 'Bras'} Sao Paulo Bras
2 Vincent {'city': 'Recife', 'district': 'Caxanga'} Recife Caxanga
</code></pre>
<p>如果需要,使用<code>drop()</code>方法:</p>
<pre><code>newdf=newdf.drop(columns=['Adress'])
</code></pre>