4 ms·
There's a lot of good things to say about ggplot, but I feel like the best thing is RStudios ability to auto-complete column names of the input dataframe throug
by wodenokoto 8y ago
There's a lot of good things to say about ggplot, but I feel like the best thing is RStudios ability to auto-complete column names of the input dataframe throughout your pipe of ggplot commands / functions.
I think I would enjoy Python just as much if I figured out how to auto complete column names when writing code for my plots and pandas operations.
- laingc 8y agoPandas dataframes can autocomplete column names using the dot syntax.
- wodenokoto 8y agoI know I can auto complete with df.mycolumn But what about df.sort_values(by='mycolumn') In that kind of cases RStudios is smart enough to know that such an argument should be populated by a column name from the dataframe that function is being applied to.
- jononor 8y agoCan't you use df.mycolumn in that position, and get the completion?