- Feature Engineering Made Easy
- Sinan Ozdemir Divya Susarla
- 194字
- 2021-06-25 22:45:54
Mathematical operations allowed
At each level, we will describe briefly the type of math that is allowed, and more importantly, not allowed. At this level, we cannot perform any quantitative mathematical operations, such as addition or pision. These would not make any sense. Due to the lack of addition and pision, we obviously cannot find an average value at the nominal level. There is no average name or average job department.
We can, however, do basic counts using pandas' value_counts methods:
# Basic Value Counts of the Grade column
salary_ranges['Grade'].value_counts().head()
00000 61 07450 12 06870 9 07170 9 07420 9 Name: Grade, dtype: int64
# Bar Chart of the Grade column salary_ranges['Grade'].value_counts().sort_values(ascending=False).head(20).plot(kind='bar')
The following is the result of the preceding code:
At the nominal level, we may also utilize pie charts:
# Bar Chart of the Grade column as a pie chart (top 5 values only)
salary_ranges['Grade'].value_counts().sort_values(ascending=False).head(5).plot(kind='pie')
The following is the output of the preceding code:
推薦閱讀
- 同步:秩序如何從混沌中涌現(xiàn)
- Python絕技:運用Python成為頂級數(shù)據(jù)工程師
- Creating Mobile Apps with Sencha Touch 2
- Live Longer with AI
- 揭秘云計算與大數(shù)據(jù)
- SQL優(yōu)化最佳實踐:構(gòu)建高效率Oracle數(shù)據(jù)庫的方法與技巧
- 數(shù)據(jù)庫設(shè)計與應(yīng)用(SQL Server 2014)(第二版)
- 探索新型智庫發(fā)展之路:藍迪國際智庫報告·2015(下冊)
- 大數(shù)據(jù)分析:數(shù)據(jù)倉庫項目實戰(zhàn)
- Doris實時數(shù)倉實戰(zhàn)
- 云計算寶典:技術(shù)與實踐
- 實現(xiàn)領(lǐng)域驅(qū)動設(shè)計
- 商業(yè)智能工具應(yīng)用與數(shù)據(jù)可視化
- 數(shù)據(jù)中臺實戰(zhàn):手把手教你搭建數(shù)據(jù)中臺
- 數(shù)據(jù)庫基礎(chǔ)與應(yīng)用