import pandas as pd def wiki_to_csv(wikiurl = str): tname = link.split("/")[-1] tables = pd.read_html(link, header=0) for i in range(len(tables)): if not tables[i].empty: fname = tname + " table " + str(i) tables[i].to_csv(fname, sep=',')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter