Neurolingua commited on
Commit
23afd68
1 Parent(s): a85a9a9

Update other_function.py

Browse files
Files changed (1) hide show
  1. other_function.py +1 -1
other_function.py CHANGED
@@ -106,7 +106,7 @@ def get_weather(city):
106
  def get_rates():
107
  r = requests.get(f'https://www.kisandeals.com/mandiprices/ALL/TAMIL-NADU/ALL')
108
  soup=BeautifulSoup(r.text,'html.parser')
109
- table= soup.find_all('table')[0]
110
  df = pd.read_html(str(table))
111
  df=pd.DataFrame(df[0])
112
  df.drop(columns=['Quintal Price'],inplace=True)
 
106
  def get_rates():
107
  r = requests.get(f'https://www.kisandeals.com/mandiprices/ALL/TAMIL-NADU/ALL')
108
  soup=BeautifulSoup(r.text,'html.parser')
109
+ table= soup.find_all('table')
110
  df = pd.read_html(str(table))
111
  df=pd.DataFrame(df[0])
112
  df.drop(columns=['Quintal Price'],inplace=True)