- Does Anyone See Why This Is Not Working The Graph Should Be Centered Around 0 75 So I Know Whatever That Histogram Is 1 (111.24 KiB) Viewed 37 times
Does anyone see why this is not working? The graph should be centered around 0.75, so I know whatever that histogram is
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Does anyone see why this is not working? The graph should be centered around 0.75, so I know whatever that histogram is
sc = pd. read_csv ("MERGED2015_16_pp.csv", low_memory = False) ► x = sc['INC_PCT_LO'] x = x.dropna () ►x 1 2 4 7588 7589 7590 7591 7592 PrivacySuppressed Name: INC_PCT_LO, Length: 7375, dtype: object plt.show() plt.hist(x, bins = 20) plt.tight_layout() plt.tick_params (axis = 'x', labelrotation = 45) plt.title("Frequency of Low Income students at plt.xlabel("Percentage of Students") plt.ylabel("Frequency") Frequency C:\Users\maxwh\AppData\Local\Temp/ipykernel_24444/3640675236.py:4: UserWarning: 'set_params ()' not defined for locator of ty pe 1000 plt.locator_params (axis='x', nbins=20) 0.6325957148 0.450312437 800- 600 0.7912087912 0.4121435143 0.6416231418 0.6105263158 0.7252747253 0.755186722 0.7857142857 400- 200 0 Frequency of Low Income students at American Institutions priv Institutions") Percentage of Students