Usually we plot graph using x and y values, but is it possible to extract data and download the csv file table in python? What are the different ways it can be achieved?
Are you asking how to get data from an already existing graph, meaning an image or other file type? If so, you could try using this resource called WebPlotDigitizer, which lets you extract data from plots in images. https://automeris.io/WebPlotDigitizer/
If you are asking how to get information from something that you are plotting and save that to a .csv file, the library you are using probably has a save or save_csv function of some kind. I know Matplotlib, as well as Pandas have these. I recommend looking into the specific libraries you are using or are interested in using, and see what options they have.