> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/francais/tutoriels/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-csv-dataframe.md).

# Lecture d'un DataFrame CSV

Accédez à **Nouvelle version de Reservoir** nœud et modification **Débit maximum** pour **-400**, cela permettra de faire circuler l'eau à travers ce nœud

<figure><img src="/files/nuoIn3dvURJGzsIZphZr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/2t6ii42arsdYl5Ks0wnw" alt=""><figcaption></figcaption></figure>

Le fichier téléchargé, **Tamise \_Lee \_Vallée \_demand.csv**, contient un ensemble de données chronologiques structuré avec deux colonnes clés :

**pas de temps :** Cette colonne servira d'index pour les séries chronologiques. Il représente la progression du temps dans l'ensemble de données, ce qui permet une organisation chronologique.

**Demande de Lee Valley :** Cette colonne contient les données représentant les valeurs de la demande dans la vallée de Lee.

<figure><img src="/files/9YANyT9qlfoH4tJ05cRe" alt="" width="443"><figcaption><p><strong>Tamise_Lee_Valley_demand</strong></p></figcaption></figure>

<figure><img src="/files/bADPzjEzxeEK0gx3NF6n" alt=""><figcaption></figcaption></figure>

Sélectionnez le nœud de sortie **Demande de Lee Valley** et modifiez le **Débit maximum**

<figure><img src="/files/sW2LW0CNZpZLWKeSo2a6" alt="" width="563"><figcaption></figcaption></figure>

Dans Options, sélectionnez **PYWR \_PARAMÈTRE**

<figure><img src="/files/AS9IIZlc5f4aRLh0BQYf" alt=""><figcaption></figcaption></figure>

Collez la configuration suivante :

\`\`json { « type » : « Paramètre du cadre de données », « url » : « Tamise\_Lee\_Fichier Valley\_demand.csv «, « column » : « Lee Valley Demand », « index\_col » : « pas de temps », « parse\_dates » : vrai }

```

Maintenant, cela devrait ressembler à l'image suivante :

<figure><img src="../../.gitbook/assets/image (7) (1).png" alt=""><figcaption></figcaption></figure>

### Résultats

Cliquez sur le nœud Lee Valley Demand > Outputs > simulated \ _flow pour voir les résultats de la simulation

<figure><img src="../../.gitbook/assets/image (38).png" alt="" width="475"><figcaption></figcaption></figure>



<figure><img src="../../.gitbook/assets/image (36).png" alt=""><figcaption><p>simulated_flow (Demande de Lee Valley)</p></figcaption></figure>



Maintenant, vérifiez **simulé \_volume** pour **Nouveau réservoir**

<figure><img src="../../.gitbook/assets/image (37).png" alt=""><figcaption><p>volume simulé (Nouveau réservoir)</p></figcaption></figure>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://water-strategy.gitbook.io/waterstrategy/francais/tutoriels/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-csv-dataframe.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
