using pandas in python, how do i flip the values of the x and y values?

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter5: Working With Excel Tables, Pivottables, And Pivotcharts
Section5.3: Pivottable And Pivotchart
Problem 5QC
icon
Related questions
Question

using pandas in python, how do i flip the values of the x and y values?

117]: # gender
movieby_gender=movie_cleaned. groupby(['gender'])['rating']. mean()
movieby gender.hist(bins=5)
Lon
.מ sbuu
Out[117]: <AxesSubplot:>
10
0.8
0.6
0.4
0.2
0.0
3.5270 3.5275 3.5280 3.5285 3.5290 3.5295 3.5300 3.5305
LO
Transcribed Image Text:117]: # gender movieby_gender=movie_cleaned. groupby(['gender'])['rating']. mean() movieby gender.hist(bins=5) Lon .מ sbuu Out[117]: <AxesSubplot:> 10 0.8 0.6 0.4 0.2 0.0 3.5270 3.5275 3.5280 3.5285 3.5290 3.5295 3.5300 3.5305 LO
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Matrix multiplication
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage