Invoke py method error

When I’m running a python script it throws an error

Invoke Python Method: One or more errors occurred. (Error invoking Python method)
image

This is my code
import pandas as pd

import json

def Generate():

df.to_excel(“Generated.xlsx”)

Hi @AbarnaKalaiselvam

In the to_excel method, can you try changing the double quotations to a single quotations (or 2 single quotations)? Please let us know the results of these changes.

Best Regards.

@arjunshenoy got the same error