嗨,我有下面的数据框。 df3=pd.DataFrame(columns=["Devices","months"])
我从一个循环 行获取行值, 打印(数据) Devices months
1 Powerbank Feb month
当我加入这个数据列到我的DF3我收到错误。 df3.loc[len(df3)]=data
ValueError: cannot set a r
您好,我有两个dataframes, DF1
Name | Class
pechi | Mr pechi lives in India
Kumar | Mr kumar lives in US
DF2,
Name |
Kumar
如果出现在DF2的字符串,在DF1字符串的任何匹配[“类”] 那么从DF1的整个行应该附加在我的DF3 My desired DF3 Shou
my_list=["one","is"]
df
Out[6]:
Name Story
0 Kumar Kumar is one of the great player in his team
1 Ravi Ravi is a good poet
2 Ram Ram drives well
如果my_list项目中的任何一个出现在“故事”专栏中,