Skip to content

Instantly share code, notes, and snippets.

Chaitanya Gupta iCHAIT

View GitHub Profile
@iCHAIT
iCHAIT / choropleth_map.py
Created Jan 21, 2018
Codes for information visualization using python lab report 2
View choropleth_map.py
import plotly.plotly as py
import pandas as pd
df = pd.read_csv('2014_world_gdp_with_codes.csv')
data = [ dict(
type = 'choropleth',
locations = df['CODE'],
z = df['GDP (BILLIONS)'],
text = df['COUNTRY'],
View flights.csv
time AirPassengers
1 1949 112
2 1949.08333333333 118
3 1949.16666666667 132
4 1949.25 129
5 1949.33333333333 121
6 1949.41666666667 135
7 1949.5 148
8 1949.58333333333 148
9 1949.66666666667 136
View 2014_world_gdp_with_codes.csv
COUNTRY GDP (BILLIONS) CODE
Afghanistan 21.71 AFG
Albania 13.40 ALB
Algeria 227.80 DZA
American Samoa 0.75 ASM
Andorra 4.80 AND
Angola 131.40 AGO
Anguilla 0.18 AIA
Antigua and Barbuda 1.24 ATG
Argentina 536.20 ARG
@iCHAIT
iCHAIT / Histogram_using_plotly.py
Last active Jan 21, 2018
Codes for Information Visualisation using python.
View Histogram_using_plotly.py
import plotly.plotly as py
import plotly.graph_objs as go
import pandas as pd
iris = pd.read_csv("iris.csv")
data = [go.Histogram(x=iris['sepal_length'].tolist())]
layout = go.Layout(title='Iris Dataset - Sepal.Length',
xaxis=dict(title='Sepal.Length'),
View NAT.java
package net.floodlightcontroller.natcs5229;
import net.floodlightcontroller.core.FloodlightContext;
import net.floodlightcontroller.core.IListener;
import net.floodlightcontroller.core.IOFMessageListener;
import net.floodlightcontroller.core.IOFSwitch;
import net.floodlightcontroller.debugcounter.IDebugCounter;
import net.floodlightcontroller.core.module.FloodlightModuleContext;
import net.floodlightcontroller.core.module.FloodlightModuleException;
import net.floodlightcontroller.core.module.IFloodlightModule;
View error_2.txt
Last login: Tue Sep 5 13:28:31 on ttys000
~/.config/fish/functions/rvm.fish (line 1):
404: Not Found
^
from sourcing file ~/.config/fish/functions/rvm.fish
called on line 1 of file ~/.config/fish/config.fish
in command substitution
called on line -1 of file ~/.config/fish/config.fish
View error.txt
➜ Build-in-Progress-Web git:(master) gem pristine executable-hooks --version 1.3.2
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Error loading RubyGems plugin "/Users/chaitanyagupta/.rvm/gems/ruby-2.1.7@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": cannot load such file -- executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin "/Users/chaitanyagupta/.rvm/gems/ruby-2.1.7@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb": cannot load such file -- gem-wrappers (LoadError)
Restoring gems to pristine condition...
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.
View best_japanese_sg.md

Shin Yuu Japanese Restaurant

4.4 16 Greenwood Ave, Singapore 289209 12–2:30PM, 6–10PM 9688 2996

Kaiseki Yoshiyuki

You can’t perform that action at this time.