edb-noumea 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl

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/details.py CHANGED
@@ -127,6 +127,12 @@ def get_detailed_results():
127
127
  if "heure" in cleaned_df.columns:
128
128
  cleaned_df["heure"] = cleaned_df["heure"].astype(str)
129
129
 
130
+ # Nettoyer et convertir les colonnes e_coli_npp_100ml et enterocoques_npp_100ml
131
+ for col in ["e_coli_npp_100ml", "enterocoques_npp_100ml"]:
132
+ if col in cleaned_df.columns:
133
+ cleaned_df[col] = cleaned_df[col].replace(r"<\s*10", "10", regex=True)
134
+ cleaned_df[col] = pd.to_numeric(cleaned_df[col], errors="coerce").astype('Int64')
135
+
130
136
  return cleaned_df
131
137
 
132
138
  if __name__ == "__main__":
@@ -138,4 +144,4 @@ if __name__ == "__main__":
138
144
  print("\n📋 Voici les détails des derniers relevés (toutes colonnes) :")
139
145
  print(detailed_df)
140
146
  print("\nColonnes du DataFrame :")
141
- #print(list(detailed_df.columns))
147
+ print(list(detailed_df.columns))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edb-noumea
3
- Version: 0.2.8
3
+ Version: 0.2.9
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
@@ -0,0 +1,7 @@
1
+ edb_noumea/__init__.py,sha256=G7WKTGLsr2wtW1E2jYpqq4miZLoSGhTifSE36CGNkLo,60
2
+ edb_noumea/details.py,sha256=NEYBssm-WGmYaR-IPNzOzkoROXumuERXBtFt5G3KcMM,6485
3
+ edb_noumea/main.py,sha256=KWT0ZGrHlbhEsQxi_Rw0Mm1syDIxoY-Px1yab94IbJc,2115
4
+ edb_noumea-0.2.9.dist-info/METADATA,sha256=uJQuJ_19brGRJE0-aZpA6JBa1v1f9teBjJHc8tuy2JM,395
5
+ edb_noumea-0.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ edb_noumea-0.2.9.dist-info/top_level.txt,sha256=Dj3JusM0b5H9_f9yZeO-IwucCZzI1OHSjLMKtvRjq6k,11
7
+ edb_noumea-0.2.9.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- edb_noumea/__init__.py,sha256=G7WKTGLsr2wtW1E2jYpqq4miZLoSGhTifSE36CGNkLo,60
2
- edb_noumea/details.py,sha256=Tg51KP1IYLr9EHTjgd7ijtZMq9Y8riTRTQOdwgoiuJg,6123
3
- edb_noumea/main.py,sha256=KWT0ZGrHlbhEsQxi_Rw0Mm1syDIxoY-Px1yab94IbJc,2115
4
- edb_noumea-0.2.8.dist-info/METADATA,sha256=-S69a6Mim62mVy-LK1XtmODDzUxDa_Q5zYB35gljUOM,395
5
- edb_noumea-0.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- edb_noumea-0.2.8.dist-info/top_level.txt,sha256=Dj3JusM0b5H9_f9yZeO-IwucCZzI1OHSjLMKtvRjq6k,11
7
- edb_noumea-0.2.8.dist-info/RECORD,,