我刚刚升级了我的ubuntu。我在spyder上遇到这个错误:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
File "/usr/bin/spyder", line 33, in <module>
sys.exit(load_entry_point('spyder==4.2.1', 'gui_scripts', 'spyder')())
File "/usr/lib/python3/dist-packages/spyder/app/start.py", line 213, in main
mainwindow.main(options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3624, in main
mainwindow = create_window(app, splash, options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3482, in create_window
main.setup()
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 803, in setup
self.completions = CompletionManager(self)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/plugin.py", line 97, in __init__
plugin_client = Plugin(self.main)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/plugin.py", line 50, in __init__
self.installer = …Run Code Online (Sandbox Code Playgroud) 我有以下数据框:
A,B,C,D
10,1,2,3
1,4,7,3
10,5,2,3
40,7,9,3
9,9,9,9
Run Code Online (Sandbox Code Playgroud)
我想从前一个只有两行的数据帧开始创建另一个数据帧。这两行的选择基于“A”列中的最小值和最大值。我想得到:
A,B,C,D
1,4,7,3
40,7,9,3
Run Code Online (Sandbox Code Playgroud)
你认为我应该使用一种 index.min e index.max 然后只选择两行然后附加到一个新的数据帧中吗?你有同样的其他建议吗?
感谢您的任何帮助,最好