> 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/espanol/tutoriales/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-csv-dataframe.md).

# Lectura de CSV DataFrame

Ir a **Nueva versión de Reservoir** nodo y cambio **Flujo máximo** a **-400**, esto permitirá que el agua fluya a través de este nodo

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-6420f89ca94eb65a3717127f5a057a71036890d3%2Fimage%20(2)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-d865c3314b236c878e80f37455d84879d7e5d3ec%2Fimage%20(5)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

El archivo descargado, **Támesis\_Lee\_Valle\_demand.csv**, contiene un conjunto de datos de series temporales estructurado con dos columnas clave:

**intervalo de tiempo:** Esta columna servirá de índice para la serie temporal. Representa la progresión temporal en el conjunto de datos, lo que permite la organización cronológica.

**Demanda de Lee Valley:** Esta columna contiene los datos que representan los valores de demanda en Lee Valley.

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-6ff2c6c50da13881ba949629c3c9e866042620c5%2Fimage%20(3)%20(1)%20(1).png?alt=media" alt="" width="443"><figcaption><p><strong>Támesis_Lee_Valley_demand</strong></p></figcaption></figure>

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-b935e0b126a1fa027985428bcb768660f1e4f19d%2Fimage%20(4)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

Seleccione el nodo de salida **Demanda de Lee Valley** y edite el **Flujo máximo**

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-6a33f97b4cd180208ec2bc2382b3af1084576456%2Fimage%20(5)%20(1)%20(1).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

En Opciones, selecciona **PYR\_PARÁMETRO**

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-6bcdcee83a916021c64825325e516b8652a1176b%2Fimage%20(6)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

Pegue la siguiente configuración:

```json
{
	«tipo»: «Parámetro de marco de datos»,
	«url»: «Támesis_Lee_Valley_demand.csv «,
	«columna»: «Demanda de Lee Valley»,
	«index_col»: «paso de tiempo»,
	«parse_dates»: verdadero
}
```

Ahora debería tener el aspecto de la siguiente imagen:

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-84e9550faf636e8fe09ae9c29546483aece993b8%2Fimage%20(7)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### Resultados

Haga clic en el nodo Lee Valley Demand > Outputs > simulated\ \_flow para ver los resultados de la simulación

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-2c2acdf9f5b2f1add124601b8c05d3946c26102c%2Fimage%20(38).png?alt=media" alt="" width="475"><figcaption></figcaption></figure>

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-0064235a1421501d36e942ee6607d0676b5bd6a4%2Fimage%20(36).png?alt=media" alt=""><figcaption><p>simulated_flow (Demanda de Lee Valley)</p></figcaption></figure>

Ahora comprueba el **simulado\_volumen** por **Nuevo embalse**

<figure><img src="https://2948356152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFNe7L0vZu0Va3aSbFYVf%2Fuploads%2Fgit-blob-5ea22e9ba5b69183bcaef39bdb72fb02f3ab8baf%2Fimage%20(37).png?alt=media" alt=""><figcaption><p>volumen simulado (depósito nuevo)</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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
