%matplotlib inline
import pandas as pd
df = pd.read_csv('data/silicon_valley_summary.csv')
# 여기에 코드를 작성하세요
boolean_male = df['gender']=='Male'
boolean_manager = df['job_category'] == 'Managers'
boolean_not_all = df['race_ethnicity'] != 'All'
df[boolean_male & boolean_manager & boolean_not_all]
df[boolean_male & boolean_manager & boolean_not_all].plot(kind='bar', x='race_ethnicity', y='count')
'자동제어 > Python for robotics' 카테고리의 다른 글
스타벅스 음료 칼로리 예제(히스토그램, bins) (0) | 2023.03.05 |
---|---|
어도비 직원분포 예제(set_index, 파이그래프) (0) | 2023.03.05 |
%matplotlib inline (0) | 2023.03.05 |
강의실 배정 예제2 (0) | 2023.03.04 |
강의실 배정 예제 (0) | 2023.03.04 |