I'm trying to import a csv file from GoogleSheet, which was successful in the research environment.

However, once tried in the main.py, it failed with “No columns to parse from file" message.

Here is the code which was SUCCESSFUL in the research environment:

qb = QuantBook()
content = qb.Download("XXX&single=true&output=csv")
df = pd.read_csv(StringIO(content))

While below is the code which FAILED in main.py:

def Import(self):
	content = self.Download("XXX&single=true&output=csv")
	df = pd.read_csv(StringIO(content))
	

Any idea to make it work in main.py?