Last answered:

08 Jan 2021

Posted on:

07 Jan 2021

0

There was warning when I wrote the function mentioned in this video

That is the annoying warning

1 answers ( 0 marked as helpful)
Instructor
Posted on:

08 Jan 2021

1

Hi Nurian,
thanks for reaching out! What you're seeing is a warning, rather than an error. This means that your code is running, you're just receiving a warning.
The warning says you might want to allocate in a different way using the .loc. If you'd like to get a more detailed undersanding on the iloc and loc method from the pandas library, you can also check out our course on Data Cleaning and Preprocessing with pandas. Section 4 has a few lectures on indexing:
Data Cleaning and Preprocessing with pandas | 365 DataScience

Hope this helps!
Best,
The 365 Team

Submit an answer