From 39029b0a0a275cfdad9e8b50ef5c79b8c5dfa7d3 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Wed, 1 Nov 2017 14:57:01 -0600 Subject: [PATCH] MNT: Silence some pandas warnings Pandas 0.21 started warning about getting the behavior we exactly expect, so filter out those warnings. --- siphon/simplewebservice/wyoming.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/siphon/simplewebservice/wyoming.py b/siphon/simplewebservice/wyoming.py index b521559b1..35d5eaad6 100644 --- a/siphon/simplewebservice/wyoming.py +++ b/siphon/simplewebservice/wyoming.py @@ -4,6 +4,7 @@ """Read upper air data from the Wyoming archives.""" from io import StringIO +import warnings from bs4 import BeautifulSoup import numpy as np @@ -11,6 +12,8 @@ from .._tools import get_wind_components from ..http_util import HTTPEndPoint +warnings.filterwarnings('ignore', 'Pandas doesn\'t allow columns to be created', UserWarning) + class WyomingUpperAir(HTTPEndPoint): """Download and parse data from the University of Wyoming's upper air archive."""