Skip to content

Commit

Permalink
Fix bus with pd.Series has not attribute to_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
meteoDaniel authored and meteoDaniel committed Jun 16, 2020
1 parent 7a30358 commit 6425275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python_dwd/download/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def download_dwd_data(remote_files: pd.DataFrame,
parallel_download: bool = False) -> List[Tuple[str, BytesIO]]:
""" wrapper for _download_dwd_data to provide a multiprocessing feature"""

remote_files: List[str] = remote_files[DWDMetaColumns.FILENAME.value].to_list()
remote_files = remote_files[DWDMetaColumns.FILENAME.value].values.tolist()

if parallel_download:
return list(
Expand Down
6 changes: 5 additions & 1 deletion python_dwd/enumerations/column_names_enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class DWDOrigColumns(Enum):
TNK = "TNK"
TGK = "TGK"

# 10 minutes data
FX_10 = "FX_10"
DX_10 = "DX_10"


class DWDMetaColumns(Enum):
""" Overhauled column names for metadata fields """
Expand All @@ -61,7 +65,7 @@ class DWDMetaColumns(Enum):

class DWDDataColumns(Enum):
""" Overhauled column names for data fields """

DATE = "DATE"
# Daily climate summary
FX = "WIND_GUST_MAX"
FM = "WIND_VELOCITY"
Expand Down

0 comments on commit 6425275

Please sign in to comment.