how to create data frame when there are some rows or some column arereflect data in another block merge at some places which
Web scrapping using beautifulsoup
hey @a7518422671_4af9584e725bf7b2 ,
Web scraping a table that has merged rows and columns , is actually a tricky and time taking task.
To do that task , i would suggest you to use pandas and just pass the specific URL for that table ,
pandas can read it directly.
Can you send me the code for doing this approach.
for example lets take the android version history table from wikipedia
so you just need to do is
open that page , copy that url
and pass it to pandas
a = pd.read_html(‘https://en.wikipedia.org/wiki/Android_version_history’)
it will read all the tables on that page , and store as a list in a
then you just need to index yours by a[0] and there you will get your table , that you need.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.