如果“id”为空,则“type”中需要留空,否则列“id1”的字符串“A2A”数据类型为object。当我把它转换成字符串时,它给出了错误。尽管我们在“ID1”中看到了空行。它显示错误“无法对浮点数执行操作”df1['type'] = np.where((df1['ID1'].isnull()) , np.nan,'A2A')ID1
3
ID1 type A2A2 A
5 Local A2A SMS valid for 1 day , 10 A2A SMS valid for 2 days , 10 Local A2A SMS for 2 days only , Daily5 Local A2A night SMS for 2 days , daily 5 local A2A night SMS for 7 days ,,,,, 5 local A2A night SMSApplicable only on selected countries and
鉴于这篇文章“嗨,a2a 3美容侯\se heyYou2",我只想保留以字母开头并以A、A或数字继续的单词。这就是我想要的输出:“嗨,a2a heyYou2”。到目前为止,我的解决方案通过text.split()函数:text = text.split()
text = [w forw in text if re.search(r"^[a-zA-Z][a-zA-Z0-9]*$", w) is not None]
SELECT symbol, date, MAX(high) AS high, MIN(low) as low, SUM(volume) as volume, (select close from a2aa2 where a1.symbol = a2.symbol and a1.date = a2.date order by time desc l