Hello Everybody!
I have a question, i’m refatoring my old python projects to Julia and i have a doubt in a situation.
Looks how i plot using python matplotlib:
df.hist(figsize=(12,10));
And now using Julia StatsPlots
begin
p1 = Plots.histogram(df.Age;
plot_title = "Age",plot_titlefontsize = 11)
p2 = Plots.histogram(df.Balance;
plot_title = "Balance",plot_titlefontsize = 11)
p3 = Plots.histogram(df.CreditScore;
plot_title = "CreditScore",plot_titlefontsize = 11)
p4 = Plots.histogram(df.CustomerId;
plot_title = "CustomerId",plot_titlefontsize = 11)
p5 = Plots.histogram(df.EstimatedSalary;
plot_title = "EstimatedSalary",plot_titlefontsize = 11)
p6 = Plots.histogram(df.Exited;
plot_title = "Exited",plot_titlefontsize = 11)
p7 = Plots.histogram(df.HasCrCard;
plot_title = "HasCrCard",plot_titlefontsize = 11)
p8 = Plots.histogram(df.IsActiveMember;
plot_title = "IsActiveMember",plot_titlefontsize = 11)
p9 = Plots.histogram(df.NumOfProducts;
plot_title = "NumOfProducts",plot_titlefontsize = 11)
p10 = Plots.histogram(df.RowNumber;
plot_title = "RowNumber",plot_titlefontsize = 11)
p11 = Plots.histogram(df.Tenure;
plot_title = "Tenure",plot_titlefontsize = 11)
@df df Plots.plot(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11;
layout = 11,
size=(1000,600)
)
end
How can i improve the Julia code to get that same result without writing a lot of code?
Thx for Help!
and sorry, I’m Julia newbie