AlgebraOfGraphics.jl icon indicating copy to clipboard operation
AlgebraOfGraphics.jl copied to clipboard

Unique naming to columns

Open piever opened this issue 5 years ago • 4 comments

In the pair syntax (e.g. :a => categorical), give names that take the function into account (as does DataFrames).

piever avatar Jul 23 '20 16:07 piever

... and (if that doesn't work yet) also allow renaming?

greimel avatar Jul 23 '20 16:07 greimel

Yes, I guess we should basically copy DataFrames, so basically :col => func gives you df.col_func = func(df.col), and :col => func => :new_name gives df.new_name = func(df.col). Maybe even :col => :newname, but let's wait to see if it's actually needed.

piever avatar Jul 23 '20 16:07 piever

I agree that a simple renaming syntax would be very handy. I dislike to have to rename the actual data columns just for a quick plot to look right.

jkrumbiegel avatar Aug 22 '20 07:08 jkrumbiegel

I like "mean(val)" better than "val_mean".

jtrakk avatar May 23 '21 06:05 jtrakk