Downloading a csv

i want to download the dataframe as a csv sheet.

g1 is my dataframe here.

the codein returns no error but i am not able to download the file

This is answered here:

Possibly this one as well: