我有一个数据框,我想与一些关键字匹配(我想检测包含这些关键字的行)我设法通过这种方式获得了这份工作。但我想知道我可能有多达 10 或 20 个不同的关键字,是否有更好的方法来做到这一点。
df1 = df[df['column1'].str.contains("keyword1") | df['column1'].str.contains('keyword2')]
Run Code Online (Sandbox Code Playgroud)
(我是初学者,请尽量保持简单)
一位自由职业者正在为我开发一款Iphone应用程序.该应用程序工作正常但我在Xcode中加载源代码时收到37警告.您是否介意快速浏览并告诉我是否有一些警告我应该担心.
谢谢你的帮助 !
yyy Group
Semantic Issue Group
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:313:74: Second argument to 'va_arg' is of promotable type 'char'; this va_arg has undefined behavior because arguments will be promoted to 'int'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:326:70: Second argument to 'va_arg' is of promotable type 'short'; this va_arg has undefined behavior because arguments will be promoted to 'int'
/Users/xxx/Desktop/Iphone App/yyy 3/yyy/Classes/FMDatabase/FMDatabase.m:329:78: Second argument to 'va_arg' is of promotable type 'unsigned short'; this va_arg has undefined behavior because arguments will be promoted to …Run Code Online (Sandbox Code Playgroud)