Skip to content

Commit

Permalink
chore(pandas): update formatting of audit ex2-question6
Browse files Browse the repository at this point in the history
  • Loading branch information
nprimo committed Nov 22, 2023
1 parent 8973e72 commit 8d4fc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subjects/ai/pandas/audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**?

Expand Down

0 comments on commit 8d4fc28

Please sign in to comment.