- 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:
推薦閱讀
- 大規(guī)模數(shù)據(jù)分析和建模:基于Spark與R
- 計算機綜合設計實驗指導
- 有趣的二進制:軟件安全與逆向分析
- 數(shù)據(jù)挖掘原理與實踐
- Test-Driven Development with Mockito
- 數(shù)據(jù)之巔:數(shù)據(jù)的本質(zhì)與未來
- 正則表達式必知必會
- Architects of Intelligence
- Voice Application Development for Android
- 大數(shù)據(jù)導論
- PySpark大數(shù)據(jù)分析與應用
- Mastering Machine Learning with R(Second Edition)
- Starling Game Development Essentials
- 企業(yè)級數(shù)據(jù)與AI項目成功之道
- 跨領域信息交換方法與技術(第二版)