diff --git a/erddapy/core/url.py b/erddapy/core/url.py index 4a86d43..b54fcea 100644 --- a/erddapy/core/url.py +++ b/erddapy/core/url.py @@ -2,7 +2,6 @@ from __future__ import annotations -import os import copy import functools import io diff --git a/erddapy/erddapy.py b/erddapy/erddapy.py index 83ea1e7..28be59c 100644 --- a/erddapy/erddapy.py +++ b/erddapy/erddapy.py @@ -405,8 +405,14 @@ def to_pandas( response = kw.pop("response", "csvp") distinct = kw.pop("distinct", False) url = self.get_download_url(response=response, distinct=distinct) - requests_kwargs = requests_kwargs if requests_kwargs else self.requests_kwargs - return to_pandas(url, requests_kwargs=requests_kwargs, pandas_kwargs=dict(**kw)) + requests_kwargs = ( + requests_kwargs if requests_kwargs else self.requests_kwargs + ) + return to_pandas( + url, + requests_kwargs=requests_kwargs, + pandas_kwargs=dict(**kw), + ) def to_ncCF( # noqa: N802 self: ERDDAP,