I am reading a CSV file in Python.
So, how can I use "str.split(...)" to count the rows, columns number of the data? Then, how can I find the length of the contents as a string?
I can not use Pandas or Numpy libraries.
Thank you for your help.
What I got so far:
with open(file,"r") as f:
reader = csv.reader(f,delimiter=',')
data = list(reader)
row_count = len(data)
print(row_count)
But it does not use by split() method. I'm still stuck with the columns.