is there any way to find out the number of rows and columns in csv file without for loop and pandas library
My code :
file=b''join(file).split(b'\n')
row_count=0
col_count=0
for line in file:
row_count+=1
line=re.split(b''',()''',line) #regex
for columns in line:
col_count+=1
print(row_count)
print(col_count)
is there any csv library are there to find the number of rows and columns.regex statement was there to handle delimeter.So no worry about it