Hands-On Data Analysis with Scala by Rajesh Gupta
Author:Rajesh Gupta [Rajesh Gupta]
Language: eng
Format: epub
Tags: COM018000 - COMPUTERS / Data Processing, COM021030 - COMPUTERS / Databases / Data Mining, COM089000 - COMPUTERS / Data Visualization
Publisher: Packt
Published: 2019-05-02T13:49:25+00:00
Computing percentiles is relatively more expensive because it requires data to be sorted.
We can also use Scala collection APIs to get some of this info:
Count the numbers:
scala> val count = nums.size
count: Int = 100
Compute the mean value of the numbers:
scala> val mean = nums.sum.toDouble / count
mean: Double = 50.5
Compute the minimum value of the numbers:
scala> val min = nums.min
min: Int = 1
Compute the maximum value of the numbers:
scala> val max = nums.max
max: Int = 100
Sort the numbers in ascending order. This is needed to compute percentiles in the next steps:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Access | Data Mining |
Data Modeling & Design | Data Processing |
Data Warehousing | MySQL |
Oracle | Other Databases |
Relational Databases | SQL |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6684)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6659)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6532)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6321)
Driving Data Quality with Data Contracts by Andrew Jones(6273)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6035)
Learning SQL by Alan Beaulieu(5988)
Weapons of Math Destruction by Cathy O'Neil(5778)
Big Data Analysis with Python by Ivan Marin(5336)
Data Engineering with dbt by Roberto Zagni(4338)
Solidity Programming Essentials by Ritesh Modi(3983)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3838)
Pandas Cookbook by Theodore Petrou(3549)
Blockchain Basics by Daniel Drescher(3292)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2900)
Feature Store for Machine Learning by Jayanth Kumar M J(2808)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2791)
Mastering Python for Finance by Unknown(2743)
