Home > Mobile >  How to add a hyperlink for downloading a dataframe as csv using Pandas
How to add a hyperlink for downloading a dataframe as csv using Pandas

Time:08-17

I'm working with a .csv cars dataset (that I got from enter image description here

>>> HTML(grouped_df.sample(5).to_html(escape=False))

enter image description here

For example, if the user click on "Download the details (.csv)" of the second row, he should get a .csv of all rows in df where the column car equals to "Ford Torino 500".

By the way, the code will be implemented in a enter image description here

  • Related