Hacker News new | past | comments | ask | show | jobs | submit login
Python vs. R for Data Science (codementor.io)
3 points by cm_yijirr on July 23, 2015 | hide | past | favorite | 2 comments



This has at least one basic error. It recommends chained indexing to index pandas DataFrames by row and column this does not have clearly defined behaviour and is specifically warned against in the pandas docs.


And there is also this strange line of R code.

colnames(existing_df) <- new_col_names

The author probably wanted to say instead:

colnames(existing_df) <- new_col_names;




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: