View this code at http://livecoding.io/111e88a61eada8efac21
This file contains 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
from mpl_toolkits.mplot3d import Axes3D | |
import statsmodels.api as sm | |
dpu = pu[pu.Reputation < 5000] | |
X = dpu[['Age', 'TimeOnSite']] | |
y = dpu['Reputation'] | |
X = sm.add_constant(X) | |
est = sm.OLS(y, X).fit() |
This file contains 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
var base = d3.select("#vis"); | |
var chart = base.append("canvas") | |
.attr("width", 400) | |
.attr("height", 300); | |
var context = chart.node().getContext("2d"); | |
var data = [1,2,13,20,23]; | |
var scale = d3.scale.linear() | |
.range([10, 390]) |
View this code at http://livecoding.io/9963037
View this code at http://livecoding.io/9962907
View this code at http://livecoding.io/9962548
View this code at http://livecoding.io/9941053
View this code at http://livecoding.io/9940874
View this code at http://livecoding.io/9940547
View this code at http://livecoding.io/9940470