我有一个像这样的pandas数据帧:
character count
0 a 104
1 b 30
2 c 210
3 d 40
4 e 189
5 f 20
6 g 10
Run Code Online (Sandbox Code Playgroud)
我希望数据框中只有前3个字符,剩下的组合在一起,others因此表格变为:
character count
0 c 210
1 e 189
2 a 104
3 others 100
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
谢谢.
我刚刚用我的GitHub帐户创建了一个GitLab帐户.
如何使用我的GitHub帐户登录我的GitLab注册表?
docker login 用我的GitHub密码不起作用.