[英]python pandas reading excel file
I have a xlsx file which has headers in column A and values in columns B through Z. How do I use pandas to read the excel file so that it reads the column names from column A and fills those columns with values from columns B through Z. 我有一个xlsx文件,该文件的A列中的标题和B到Z列的值。如何使用熊猫读取excel文件,以便它从A列读取列名,并用B到Z列的值填充这些列。
Right now when I try to read the excel file it uses the top row value in columns A through Z as column names and uses the values in row second and on for filling the columns. 现在,当我尝试读取excel文件时,它使用A到Z列中的第一行值作为列名,并使用第二行及以后的值填充列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.