I am trying to write a code for scraping data from http://goldpricez.com/gold/history/lkr/years-3. The code that I have written follows below. The code works and gives me my intended results.
import pandas as pd
url = "http://goldpricez.com/gold/history/lkr/years-3"
df = pd.read_html(url)
print(df)
But result is with some unwanted data and I want only the data in the table. Please can some help me with this.
Here I have added the image of the output with unwanted data (red circled)