# 读取 CSV 数据框

前往 **新水库发布** 节点和更改 **最大流量** 到 **-400**，这将允许水流过这个节点

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

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

下载的文件， **泰晤士河\_李\_山谷\_demand.csv**，包含一个由两个关键列构成的时间序列数据集：

**时间步长：** 此列将用作时间序列的索引。它代表数据集中的时间进度，允许按时间顺序进行组织。

**李谷需求：** 此列包含代表李谷需求值的数据。

<figure><img src="/files/7JdyVVq35BonF2v7xmOE" alt="" width="443"><figcaption><p><strong>泰晤士河_李_Valley_Demand</strong></p></figcaption></figure>

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

选择输出节点 **李谷需求** 然后编辑 **最大流量**

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

在 “选项” 中选择 **PYWR\_参数**

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

粘贴以下配置：

\`\`json { “类型”：“数据框参数”， “网址”：“泰晤士河\_李\_Valley\_demand.csv “， “专栏”：“李谷需求”， “index\_col”: “时间步”， “parse\_dates”：真 }

```

现在它应该如下图所示：

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

### 结果

点击节点 Lee Valley 需求 > 输出 > 模拟\ _flow 查看仿真结果

<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（李谷需求）</p></figcaption></figure>



现在检查一下 **模拟\_卷** 为了 **新水库**

<figure><img src="../../.gitbook/assets/image (37).png" alt=""><figcaption><p>模拟体积（新水库）</p></figcaption></figure>
```


---

# Agent Instructions: 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:

```
GET https://water-strategy.gitbook.io/waterstrategy/zhong-guo-ren/jiao-cheng/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/reading-csv-dataframe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
