Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What do you mean? Julia is 1-indexed.


Ok, in that case Python would be 0, 1, 3 and Julia 1, 2, 3. My point is that the example explicitly skips an index in the definition of a data frame for Python, but it doesn't for Julia.


Surely Python would not skip the 2.


The code snippet explicitly defines the index to be 0, 1, 3. It may just be a typo, but if even simple examples are written sloppily, how can I trust the sheet:

df = pd.DataFrame( {'col_1': [11, 12, 13], 'col_2': [21, 22, 23]}, index=[0, 1, 3])




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

Search: