Home > other > With the pandas how to extract the data header
With the pandas how to extract the data header
Time:09-25
As example, assume that this is from a. CSV file read data inside, but how to bring out the number of this group of each column items (the content of the red box), the name of the
Thank you, python beginner, rookie, searched a lot can not find the relevant posts, help guide, Thanks a lot!
CodePudding user response:
Nobody answer? Or question is too simple to disdain to answer?
CodePudding user response:
import pandas as pd Data1=pd. Read_csv (' filename. CSV) # read data Print (data1. Columns)