Forum Discussion
How to import tables from web?
What I would recommend that you do is create queries for two of the entries and then in one of the queries, merge them together. You can follow the instructions in my article here:
http://social.technet.microsoft.com/wiki/contents/articles/32915.powerbi-merge-query-with-m.aspx
Once you have the M code, then write a script to generate the M code for merging all 110 web link sources. Create a blank query and paste in the generated M code.
- vignesgangboard9 years agoNew Member
- Click the Microsoft Office Button , and then click Open.
- In the Look in box, locate the folder where your query file is stored.
- Select the Web query that Hadoop Training in Chennai you want to run.
- Click Open.
- In the Import Data dialog box, do one of the following:
- prakashtpt1 year agoNew Member
A: You can import tables from a webpage using various tools or programming languages. One common method is using Python with the pandas library:
import pandas as pd # Replace the URL with the webpage that contains the table url = 'https://example.com/tablepage' # Read all tables from the page tables = pd.read_html(url) # Access the first table df = tables[0] print(df.head())
Notes:
pandas.read_html() works only if the table is in proper HTML <table> format.
You may need to install dependencies like lxml or html5lib with pip install lxml html5lib.
Alternatively, for non-programmers, tools like Microsoft Excel or Google Sheets can import web tables:
In Excel: Go to Data > From Web, enter the URL, and select the table.
In Google Sheets: Use =IMPORTHTML("URL", "table", index).
Visit For more information: https://www.tpointtech.com/python-tutorial