lbl-anp / becquerel

Becquerel is a Python package for analyzing nuclear spectroscopic measurements.
Other
43 stars 16 forks source link

Address a FutureWarning from pandas #384

Closed markbandstra closed 10 months ago

markbandstra commented 10 months ago

This change removes the following warning that occurs when querying XCOM data:

becquerel/tools/xcom.py:403: FutureWarning: Passing literal html to 'read_html' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
  tables = pd.read_html(self._text, header=0, skiprows=[1, 2])
jvavrek commented 10 months ago

See also #381