Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.
<configuration> | |
<property> | |
<name>fs.s3a.access.key</name> | |
<description>AWS access key ID. Omit for Role-based authentication.</description> | |
<value>YOUR_ACCESS_KEY</value> | |
</property> | |
<property> | |
<name>fs.s3a.secret.key</name> | |
<description>AWS secret key. Omit for Role-based authentication.</description> |
Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.
import math | |
import numpy as np | |
from scipy.stats import beta | |
def nps_beta_dist(sample_size, promoters, detractors, confidence=95): | |
""" | |
Confidence range of NPS score. NPS score is defined as the percent of promoters | |
minus the percent of detractors. See also http://en.wikipedia.org/wiki/Net_Promoter | |
Source: http://willandorla.com/will/2011/01/convert-folder-into-git-submodule/
$ git clone --no-hardlinks original-repo copied-repo