3 ms·
What do you mean? Julia is 1-indexed.
by joeman1000 3y ago
What do you mean? Julia is 1-indexed.
- rgavuliak 3y agoOk, 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.
- markkitti 3y agoSurely Python would not skip the 2.
- rgavuliak 3y agoThe 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])