udacity / deep-learning-v2-pytorch

Projects and exercises for the latest Deep Learning ND program https://www.udacity.com/course/deep-learning-nanodegree--nd101
MIT License
5.31k stars 5.33k forks source link

changing .ix to .iloc for indexing #207

Closed souravs17031999 closed 3 years ago

souravs17031999 commented 5 years ago

.ix is deprecated so, it gives warnings for its usage. Warning : c:\users\dell\appdata\local\programs\python\python37\lib\site-packages\ipykernel_launcher.py:16: DeprecationWarning: .ix is deprecated. Please use .loc for label based indexing or .iloc for positional indexing

See the documentation here: http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated app.launch_new_instance()

To suppress warnings, we can use .iloc

souravs17031999 commented 5 years ago

Thanks for review.

abhiojha8 commented 3 years ago

We are closing this because it has been addressed through another PR.