Não consegui importar os dados do site: https://www.portalbrasil.net/igpm.htm
Fazendo a importação dos dados no formato html de um site:
df_html_ipgm = pd.read_html("https://www.portalbrasil.net/igpm.htm");
Erro:
HTTPError Traceback (most recent call last) in ----> 1 df_html_ipgm = pd.read_html("https://www.portalbrasil.net/igpm.htm");
~\Anaconda3\envs\alura_pandas\lib\site-packages\pandas\io\html.py in read_html(io, match, flavor, header, index_col, skiprows, attrs, parse_dates, tupleize_cols, thousands, encoding, decimal, converters, na_values, keep_default_na) 913 thousands=thousands, attrs=attrs, encoding=encoding, 914 decimal=decimal, converters=converters, na_values=na_values, --> 915 keep_default_na=keep_default_na)
~\Anaconda3\envs\alura_pandas\lib\site-packages\pandas\io\html.py in _parse(flavor, io, match, attrs, encoding, **kwargs) 747 break 748 else: --> 749 raise_with_traceback(retained) 750 751 ret = []
~\Anaconda3\envs\alura_pandas\lib\site-packages\pandas\compat_init_.py in raise_with_traceback(exc, traceback) 383 if traceback == Ellipsis: 384 _, _, traceback = sys.exc_info() --> 385 raise exc.with_traceback(traceback) 386 else: 387 # this version of raise is a syntax error in Python 3
HTTPError: HTTP Error 403: Forbidden