Skip to content

Conversation

@ElyotL
Copy link
Collaborator

@ElyotL ElyotL commented Jun 18, 2025

count_and_print_modifications(json_path, i_modif=None, i_marche_modifie=None):
Si i_modif et i_marche_modifie restent None la fonction retourne uniquement la liste des modifications.
Si i_modif = 4 cela retournera tout les marchés modifiés avec 4 modifications et si i_marche_modifie a une valeur alors le code retournera uniquement le i_marche_modifie ème marché avec 4 modifications.

La PR a peut être des conflits tenez moi au courant.




def count_and_print_modifications(json_path, i_modif=None, i_marche_modifie=None):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peux-tu documenter les paramètres en entrée de la fonction ? Leur rôle n'est pas très clair :)
Par exemple avec une docstring sous la signature du la fonction

"""Param1 : ...
Param2 : ...
etc.
"""

return compteur


count_and_print_modifications("data/decp-2022.json",i_modif=11)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi l'appel de fonction n'utilise pas le paramètre i_marche_modifie ?

@ElyotL
Copy link
Collaborator Author

ElyotL commented Jun 28, 2025

Salut @ColinMaudry
J'ai upload ce que tu m'as demandé !
Dis moi si c'est plus clair !

@ColinMaudry ColinMaudry changed the base branch from main to dev September 2, 2025 20:20
@ColinMaudry
Copy link
Owner

Salut ! J'oublie pas ta PR 😉 C'est juste que la rentrée c'est un peu le rush...

Le code de base a bougé depuis que tu as écrit ton code (ça bouge vite en ce moment !). Par exemple tu comptes les modifications dans le JSON plutôt que dans les données que le dataframe qu'on produit.

Je vais quand même prendre le temps de réviser en imaginant que c'était l'object 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants