JuliaDocs / Julia-Cheat-Sheet

Julia Cheat Sheet
https://cheatsheet.juliadocs.org
MIT License
344 stars 109 forks source link

miss right parentheses in reshape section of DataFrames #131

Closed y1my1 closed 3 years ago

y1my1 commented 3 years ago

In "Reshape from wide to long format''

stack(df, [1:n; ])
stack(df, [:col1, :col2, ...]
melt(df, [:col1, :col2]) [

Should the second stack be

stack(df, [:col1, :col2, ...])

And is there an extra bracket in melt, so should it be

melt(df, [:col1, :col2]) 
brakmic commented 3 years ago

Thanks. Please, open a PR so I can merge your changes.