edb-noumea 0.2.12__tar.gz → 0.2.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/PKG-INFO +1 -1
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea/details.py +5 -2
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea.egg-info/PKG-INFO +1 -1
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/pyproject.toml +1 -1
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/README.md +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea/__init__.py +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea/main.py +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea.egg-info/SOURCES.txt +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea.egg-info/dependency_links.txt +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea.egg-info/requires.txt +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/edb_noumea.egg-info/top_level.txt +0 -0
- {edb_noumea-0.2.12 → edb_noumea-0.2.13}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edb-noumea
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa.
|
|
5
5
|
Project-URL: Homepage, https://github.com/adriens/edb-noumea
|
|
6
6
|
Project-URL: Repository, https://github.com/adriens/edb-noumea
|
|
@@ -126,17 +126,20 @@ def get_detailed_results():
|
|
|
126
126
|
if "heure" in cleaned_df.columns:
|
|
127
127
|
cleaned_df["heure"] = cleaned_df["heure"].astype(str)
|
|
128
128
|
|
|
129
|
+
|
|
129
130
|
# Nettoyer et convertir les colonnes e_coli_npp_100ml et enterocoques_npp_100ml
|
|
130
|
-
# Appliquer la même technique à l'avant-dernière colonne (e_coli_npp_100ml)
|
|
131
131
|
if "e_coli_npp_100ml" in cleaned_df.columns:
|
|
132
132
|
cleaned_df["e_coli_npp_100ml"] = cleaned_df["e_coli_npp_100ml"].astype(str).str.replace(r"<\s*10", "10", regex=True)
|
|
133
133
|
cleaned_df["e_coli_npp_100ml"] = pd.to_numeric(cleaned_df["e_coli_npp_100ml"], errors="coerce").astype('Int64')
|
|
134
134
|
|
|
135
|
-
# Appliquer la même technique à la dernière colonne (enterocoques_npp_100ml)
|
|
136
135
|
if "enterocoques_npp_100ml" in cleaned_df.columns:
|
|
137
136
|
cleaned_df["enterocoques_npp_100ml"] = cleaned_df["enterocoques_npp_100ml"].astype(str).str.replace(r"<\s*10", "10", regex=True)
|
|
138
137
|
cleaned_df["enterocoques_npp_100ml"] = pd.to_numeric(cleaned_df["enterocoques_npp_100ml"], errors="coerce").astype('Int64')
|
|
139
138
|
|
|
139
|
+
# Convertir la colonne 'date' en datetime (format jour/mois/année)
|
|
140
|
+
if "date" in cleaned_df.columns:
|
|
141
|
+
cleaned_df["date"] = pd.to_datetime(cleaned_df["date"], format="%d/%m/%Y", errors="coerce")
|
|
142
|
+
|
|
140
143
|
return cleaned_df
|
|
141
144
|
|
|
142
145
|
if __name__ == "__main__":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: edb-noumea
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: Un scraper pour la qualité des eaux de baignade à Nouméa.
|
|
5
5
|
Project-URL: Homepage, https://github.com/adriens/edb-noumea
|
|
6
6
|
Project-URL: Repository, https://github.com/adriens/edb-noumea
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|