Skip to content

Commit d735809

Browse files
committed
preventing warning and adding correct description
1 parent d990104 commit d735809

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

covidmx/serendipia.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from itertools import product
33
from unidecode import unidecode
44
from covidmx.utils import translate_serendipia
5+
pd.options.mode.chained_assignment = None
56

67

78
class Serendipia:
@@ -102,7 +103,7 @@ def read_data(self, date, kind):
102103
def clean_data(self, df):
103104

104105
df.columns = df.columns.str.lower().str.replace(
105-
' |-', '_').str.replace('°', '').map(unidecode)
106+
' |-|\n', '_').str.replace('°', '').map(unidecode)
106107
df.columns = df.columns.str.replace(r'(?<=identificacion)(\w+)', '')
107108
# Removing Fuente row
108109
df = df[~df['n_caso'].str.contains('Fuente|Corte')]

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
version="0.1.0",
99
author="Federico Garza",
1010
author_email="[email protected]",
11-
description="Python SDK to get information about COVID-19 in México.",
11+
description="Python API to get information about COVID-19 in México.",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/FedericoGarza/covidmx",

0 commit comments

Comments
 (0)