简体   繁体   English

预览熊猫中的列名

[英]Preview column names in pandas

When I am working with Rstudio I often cannot remember the name of a column so i will type data_frame$ and then a few letters that I think are in the column name and various potential column names containing that string will pop up, and i will select the correct one. 当我使用Rstudio时,我通常不记得列的名称,因此我将输入data_frame$ ,然后我认为列名称中包含一些字母,然后会弹出包含该字符串的各种可能的列名称,然后我将选择正确的。 Is there anyway of getting this same functionality in vscode when working with pandas? 在使用熊猫时,是否有在vscode中获得相同功能的方法? Currently I have to look at subject_csv.columns.values and find the name of the colum im interested in which is a lot slower. 目前,我必须查看subject_csv.columns.values并找到感兴趣的列的名称,该名称要慢得多。

Maybe try: 也许尝试:

dataframe.info()
dataframe.head() - will show 5 first rows  with columns names by default
dataframe.describe() - detailes info on DF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM