From 8d4fc28d025ce9cac0b78456f22506ced2e614a8 Mon Sep 17 00:00:00 2001 From: nprimo Date: Wed, 22 Nov 2023 11:50:41 +0000 Subject: [PATCH] chore(pandas): update formatting of audit ex2-question6 --- subjects/ai/pandas/audit/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/ai/pandas/audit/README.md b/subjects/ai/pandas/audit/README.md index f7b04fef88..3980481e88 100644 --- a/subjects/ai/pandas/audit/README.md +++ b/subjects/ai/pandas/audit/README.md @@ -86,8 +86,8 @@ ``` - You may wonder `df.loc[:,'A']` is required and if `df['A'] = ...` works too. **The answer is no**. This is important in Pandas. Depending on the version of Pandas, it may return a warning. The reason is that you are affecting a value to a **copy** of the DataFrame and not in the DataFrame. - More details: https://stackoverflow.com/questions/20625582/how-to-deal-with-settingwithcopywarning-in-pandas +You may wonder `df.loc[:,'A']` is required and if `df['A'] = ...` works too. **The answer is no**. This is important in Pandas. Depending on the version of Pandas, it may return a warning. The reason is that you are affecting a value to a **copy** of the DataFrame and not in the DataFrame. +More details: https://stackoverflow.com/questions/20625582/how-to-deal-with-settingwithcopywarning-in-pandas ###### For question 7, is the output of `print(filtered_df.head().to_markdown())` as below and is the number of rows equal to **449667**?