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
| import zmq | |
| import random | |
| import time | |
| raw_input = input | |
| context = zmq.Context() | |
| # Socket to send messages on | |
| sender = context.socket(zmq.ROUTER) |
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
| { | |
| "extensions": { | |
| "jupyter_dashboards": { | |
| "version": 1, | |
| "views": { | |
| "grid_default": { | |
| "col": 0, | |
| "height": 15, | |
| "hidden": false, | |
| "row": 9, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| model = ols('no2~trafic+seasons',combined_data) |
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
| from statsmodels.formula.api import ols | |
| model = ols('no2~trafic', combined_data) | |
| res = model.fit() |
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
| df = pd.read_csv('./data/donnes_paris_capteurs/donnees_trafic_capteurs_201801.txt', | |
| decimal=b',', sep='\t', | |
| names=['arc_id', 'date', 'debit', 'percent'], | |
| parse_dates=True) |
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
| Installing nokogiri 1.8.1 with native extensions | |
| Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
| current directory: /usr/local/share/gems/gems/nokogiri-1.8.1/ext/nokogiri | |
| /usr/bin/ruby -r ./siteconf20180912-64-mhghk2.rb extconf.rb | |
| mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h | |
| extconf failed, exit code 1 | |
| Gem files will remain installed in /usr/local/share/gems/gems/nokogiri-1.8.1 for inspection. |
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
| test |
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
| import boto | |
| from boto.kinesis.exceptions import ResourceInUseException | |
| import os | |
| import time | |
| if aws_profile: | |
| os.environ['AWS_PROFILE'] = aws_profile | |
| # connect to the kinesis | |
| kinesis = boto.kinesis.connect_to_region(region) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.