pip install siuba
# The code below analyzes a sample dataset about cars to get the average horsepower(hp) per cylinder(cyl).
from siuba import _, group_by, summarize
from siuba.data import mtcars
(mtcars
>> group_by(_.cyl)
>> summarize(avg_hp = _.hp.mean())
)
# When you run the code, try to hit "Visualize" and see what it looks like on a bar chart