Working With Missing And Duplicate Data - unequal row numbers

It was said here that each csv file has the same number of rows however I downloaded from kaggle and have different row numbers please advise?

https://app.dataquest.io/m/347/working-with-missing-and-duplicate-data/1/introduction

print(‘The 2016 DataFrame is :\n’, shape_2016)

#get dataframe shape

print(’\nDataFrame Shape :’, shape_2016)

​

# find the shape of DataFrame

# get the number of rows and columns using index on the shape

print('\nNumber of rows :', shape_2016[0])

print('\nNumber of columns :', shape_2016[1])

The 2016 DataFrame is :
(157, 13)

DataFrame Shape : (157, 13)

Number of rows : 157

Number of columns : 13

The 2015 DataFrame is :
(158, 12)

DataFrame Shape : (158, 12)

Number of rows : 158

Number of columns : 12

The 2017 DataFrame is :
(155, 12)

DataFrame Shape : (155, 12)

Number of rows : 155

Number of columns : 12

Right below the link to the dataset on Kaggle

In this mission, we’ll work with modified versions of the data sets.

You can either work with the Kaggle dataset and it won’t be the same as the one Dataquest is using, or you can work with Dataquest’s one. But do expect differences between the two.

1 Like