From 9bccec80d0ebbe4151f57a4b82eb5039fb013a85 Mon Sep 17 00:00:00 2001 From: 1879020 <125237915+1879020@users.noreply.github.com> Date: Thu, 2 Apr 2026 17:33:57 +0800 Subject: [PATCH] Add notes about nrows=100 in data ingestion doc Add a note to clarify that nrows=100 will not trigger the DtypeWarning --- 01-docker-terraform/docker-sql/05-data-ingestion.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/01-docker-terraform/docker-sql/05-data-ingestion.md b/01-docker-terraform/docker-sql/05-data-ingestion.md index 2e3ad5ce4..2a991bbe4 100644 --- a/01-docker-terraform/docker-sql/05-data-ingestion.md +++ b/01-docker-terraform/docker-sql/05-data-ingestion.md @@ -50,6 +50,9 @@ df.dtypes # Check data shape df.shape ``` +### Note +- When using `nrows=100` to sample the first 100 rows, all columns have consistent data types in this subset, so **the `DtypeWarning` below will NOT appear**. +- To reproduce the type warning shown below, remove the `nrows=100` parameter and read the full dataset. ### Handling Data Types