在 vscode 中将 pandas 设置为 pd 别名 [英] Set up pandas as pd alias in vscode
本文介绍了在 vscode 中将 pandas 设置为 pd 别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近开始在 python 中使用 vscode.我在使用别名时遇到问题.当我尝试使用 import pandas 作为 pd 时,它为我提供了诸如 pandas、pdb、pudb 之类的智能选项.我不知道为什么这样做而 pd 不起作用.
I recently started using vscode for python. I have a problem using alias. When i try to use import pandas as pd, it gives me intelligence options like pandas, pdb,pudb. I have no idea why its doing that and pd doesn't work.
关于如何在 vscode 中使用别名的任何想法
Any idea on how to make alias work in vscode
推荐答案
对于那个问题你可以使用 ;
然后按回车它应该可以工作
for that problem you can use ;
then press enter it should work
import numpy as pd;
这篇关于在 vscode 中将 pandas 设置为 pd 别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文