简单地做就足够了
order = [1,2,3,0] # setting column's order
df = df[[df.columns[i] for i in order]]
也阅读:silent !start python -m ipdb
,
嗯,那不完全是我要的(尽管我的问题中没有明确说明)-但这很有帮助。它正在打开分层窗口,我想与我的vim并排。但是,也为我加油,我终于设法使你成功了:
:silent !start cmd.exe /c -new_console:s python -m ipdb %
此命令与vim并排打开新标签页
这是我在_vimrc中所做的:
"python with virtualenv support
let pipenv_venv_path = system('pipenv --venv')
" The above system() call produces a non zero exit code whenever
" a proper virtual environment has not been found.
if shell_error == 0
let venv_path = substitute(pipenv_venv_path,'\n','','')
let py_binary = venv_path . '/Scripts/python.exe'
else
let py_binary = 'python.exe'
endif
"map F10 to execute ipdb in separate split Tab in ConEmu:
nnoremap <silent> <expr> <F10> '<ESC>:w!<CR>:!start cmd.exe /c -new_console:s ' . expand(py_binary) . ' -m ipdb %<CR>'
感谢您的帮助!
本文链接:https://www.f2er.com/3134247.html