Community Forums

Find answers, ask questions, and connect with the
GRAPH Courses community.

Home Forums Python help Reprex test!

  • Reprex test!

    Posted by Lisa on December 6, 2022 at 8:20 am

    # This is a test post using the reprexpy package import pandas as pd from plotnine import ggplot, geom_point, aes, stat_smooth, facet_wrap, geom_line from plotnine.data import mtcars, economics mtcars.head() # name mpg cyl disp hp drat wt qsec vs am gear \ 0 Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 1 Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 2 Datsun 710 22.8 4 108.0 93 3.85 2.320 18.61 1 1 4 3 Hornet 4 Drive 21.4 6 258.0 110 3.08 3.215 19.44 1 0 3 4 Hornet Sportabout 18.7 8 360.0 175 3.15 3.440 17.02 0 0 3 carb 0 4 1 4 2 1 3 1 4 2 (ggplot(mtcars, aes('wt', 'mpg', color='factor(gear)')) + geom_point() + stat_smooth(method='lm') + facet_wrap('~gear')) #>


    economics_head = economics.head(10) (ggplot(economics_head, aes('date', 'pop') ) + geom_point()) #

    Greater than >, and less than <

    Lisa replied 1 year, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.