Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close #1350 #1351

Merged
merged 3 commits into from
Feb 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions covsirphy/gis/_layer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import contextlib
import warnings
import pandas as pd
from covsirphy.util.config import config
from covsirphy.util.validator import Validator
Expand Down Expand Up @@ -112,6 +113,7 @@ def register(self, data, layers=None, date="Date", variables=None, citations=Non
df[self.DATE] = df[self.DATE].dt.tz_convert(None)
# Convert country names to ISO3 codes
if convert_iso3 and self._country is not None and self._country in df:
warnings.filterwarnings("ignore", category=DeprecationWarning)
df.loc[:, self._country] = self._to_iso3(df[self._country])
# Prepare necessary layers and fill in None with "NA"
if data_layers is not None and data_layers != self._layers:
Expand Down