我们可以使用以下内容来迭代数据帧的行.
for index, row in df.iterrows():
Run Code Online (Sandbox Code Playgroud)
如果我想从不同的行索引开始怎么办?(不是从第一行开始)?
我们可以使用df = rbind(df, another_df). 如果需要another_df从df行名df和another_df不匹配的行名中删除它应该如何。
df = data.frame(A=c('a','aa','aaa'), B=c('b','bb','bbb'))
rownames(df)
another_df =data.frame(A=c('aa','a'), B=c('bb','b'))
rownames(another_df)=c('3','4')
Run Code Online (Sandbox Code Playgroud) 我正在尝试按照YouTube视频上的教程进行操作.
但是from kivy import App给出了ImportError: cannot import name App.我怎样才能解决这个问题?
我已经安装了kivy 1.8.0和cython 0.20
pip freeze 回报
adium-theme-ubuntu==0.3.4
Cython==0.20
Kivy==1.8.0
Kivy-Garden==0.1.1
numpy==1.11.0
pygame===1.9.1release
requests==2.11.0
unity-lens-photos==1.0
virtualenv==15.0.3
Run Code Online (Sandbox Code Playgroud)