I am Writing a Python Function to Parse CSV Lines
import csv
import StringIO
def parseCV(csvrow):
data = StringIO.StringIO(csvrow)
dataReader = csv.reader(data)
return(dataReader.next())
But it is giving following error:
ModuleNotFoundError Traceback (most recent call last)
in
3 import csv
4 from io import StringIO
----> 5 from StringIO import StringIO
6 import string
7 def parseCV(csvrow):
ModuleNotFoundError: No module named ‘StringIO’
Can someone suggest changes?