我有一个 Pandas 数据框,如下所示:
ID Col.A
28654 This is a dark chocolate which is sweet
39876 Sky is blue 1234 Sky is cloudy 3423
88776 Stars can be seen in the dark sky
35491 Schools are closed 4568 but shops are open
Run Code Online (Sandbox Code Playgroud)
我试图Col.A在单词dark或digits. 我想要的结果如下。
ID Col.A Col.B
28654 This is a dark chocolate which is sweet
39876 Sky is blue 1234 Sky is cloudy 3423
88776 Stars can be seen in the dark sky
35491 …Run Code Online (Sandbox Code Playgroud)