In googleplaystore and applestore dataset, there are 14 and 17 columns respectively (according to the csv file). but using the explore_data function it shows 150 and 93 columns!
here is the function:
def explore_data(dataset, start, end, rows_and_columns=False):
dataset_slice = dataset[start:end]
for row in dataset_slice:
print(row)
print('\n') # adds a new (empty) line after each row
if rows_and_columns:
print('Number of rows:', len(dataset))
print('Number of columns:', len(dataset[0]))
I run it like this: explore_data(android[1:],0,5,True)
is something wrong here or maybe it is my mistake I’m not sure
Dear @DishinGoyani thanks for answering my question.
here is the code for reading the files
android = open(‘googleplaystore.csv’)
android = list(android)
apple = open(‘AppleStore.csv’, encoding=‘utf8’)
apple = list(apple)