ziwangdeng.com
How to explore your csv file with pandas? - AI Hobbyist
A comprehensive understanding of the overall situation of the data is the first step in data analysis. The following sample code shows you how to do this simply with pandas. Use of functions columns, keys(),axes,dtypes,info(),describe(),describe(include=object),isna().sum(),nunique(),value_counts(),len,shape,nsmallest(), nlargest(),sample(),head and tail. Read data #dowonload https://github.com/ziwangdeng/Data/blob/main/Vancouver_weather2010to2019_v00.csv import pandas as pd df=pd.read_csv('Vancouver_weather2010to2019_v00.csv') Check column names df.columns Index(['Unnamed: 0', 'Longitude (x)', ..Read more
admin