sudo apt-get install openjdk-8-jdk
Source data: https://www.openintro.org/stat/textbook.php sample data - county_w_sm_ban.txt
Using Cloudera 5.4.2-0 QuickStart VMWare image.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Oct 31 20:45:05 2015 | |
http://stanford.edu/~mwaskom/software/seaborn/tutorial/distributions.html#plotting-univariate-distributions | |
http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.distplot.html#seaborn.distplot | |
http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.regplot.html?highlight=regplot#seaborn.regplot | |
@author: baobab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Oct 31 20:45:05 2015 | |
@author: baobab | |
""" | |
import pandas; | |
import numpy as np | |
import matplotlib.pyplot as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> /* set the CSS */ | |
body { font: 12px Arial;} | |
path { | |
stroke: steelblue; | |
stroke-width: 2; | |
fill: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date | close | |
---|---|---|
1-May-12 | 58.13 | |
30-Apr-12 | 53.98 | |
27-Apr-12 | 67.00 | |
26-Apr-12 | 89.70 | |
25-Apr-12 | 99.00 | |
24-Apr-12 | 130.28 | |
23-Apr-12 | 166.70 | |
20-Apr-12 | 234.98 | |
19-Apr-12 | 345.44 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the maximum value from array. | |
* @param getter Optional function for mapping array elements to actual comparison value. | |
* Examples: | |
* lengths.max(); | |
* persons.max(function(person) { return person.age; }); | |
*/ | |
Array.prototype.max = function(getter) { | |
var val; | |
getter = getter || function(v) { return v; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the minimum value from array. | |
* @param getter Optional function for mapping array elements to actual comparison value. | |
* Examples: | |
* lengths.min(); | |
* persons.min(function(person) { return person.age; }); | |
*/ | |
Array.prototype.min = function(getter) { | |
var val; | |
getter = getter || function(v) { return v; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Global Objects | |
// https://nodejs.org/api/globals.html | |
__filename; // The filename (resolved absolute path) of the code being executed. | |
__dirname; // The name of the directory that the currently executing script resides in. (absolute path) | |
global; // The global namespace object. | |
process; // The process object https://nodejs.org/api/process.html | |
process.chdir(directory); // Changes the current working directory of the process or throws an exception if that fails. |
NewerOlder