Reputation: 1239
I tried to read the shape of the dataset on kaggle and it shows
df_tr.shape # 35,33,286
(3533286, 9)
and in collab, it shows
df_tr.shape
(71188, 9)
I am not sure why this much difference. Could someone please let me know? The dataset I am trying to read it in the kaggle.
Upvotes: 0
Views: 35
Reputation: 1239
I was reading the data like this
df_tr = pd.read_csv('2019-Dec.csv')
df_tr.head()
so when I ran the below step
df_tr.shape
it shows fewer records. when I removed df_tr.head() then it shows the proper count as the one in kaggle.
Upvotes: 1