Skip to content

Instantly share code, notes, and snippets.

View JorgeMiguelGomes's full-sized avatar
💭
Breaking things

Jorge Gomes JorgeMiguelGomes

💭
Breaking things
View GitHub Profile
import pandas as pd
import plotly.express as px
import time
import json
import urllib
import urllib.request
# import dash libraries
import dash
import dash_core_components as dcc
@JorgeMiguelGomes
JorgeMiguelGomes / samplecode.py
Created June 22, 2021 09:46
Sample code for plotly community forum: pie chart not updating on callback
# import libraries
import pandas as pd
import plotly.express as px
import time
import json
import urllib
import urllib.request
# import dash libraries
@JorgeMiguelGomes
JorgeMiguelGomes / exposingtheinvisible_part03.ipynb
Created May 26, 2021 17:20
ExposingTheInvisible_Part03.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JorgeMiguelGomes
JorgeMiguelGomes / exposingtheinvisible_part02.ipynb
Created May 26, 2021 17:20
ExposingTheInvisible_Part02.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JorgeMiguelGomes
JorgeMiguelGomes / exposingtheinvisible_part01.ipynb
Created May 26, 2021 17:18
ExposingTheInvisible_Part01.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JorgeMiguelGomes
JorgeMiguelGomes / rally.csv
Created May 15, 2021 19:52
Rally De Portugal 2021
ame lon lat stage capacity label
ZE01 -8.396936 41.180978 Shakedown 15 Shakedown -- ZE01
ZE02 -8.396266 41.18344 Shakedown 13 Shakedown -- ZE02
ZE03 -8.394803 41.188662 Shakedown 14 Shakedown -- ZE03
ZE05 -8.203243 40.1191 Lousã 11 Lousã -- ZE05
ZE06 -8.210275 40.122699 Lousã 15 Lousã -- ZE06
ZE07 -8.216863 40.12002 Lousã 11 Lousã -- ZE07
ZE09 -8.075492 40.155124 Góis 11 Góis -- ZE09
ZE10 -8.048087 40.17041 Góis 14 Góis -- ZE10
ZE11 -8.032129 40.173542 Góis 11 Góis -- ZE11
@JorgeMiguelGomes
JorgeMiguelGomes / flights.py
Created May 12, 2021 10:30
Flights: A script for network analysis
# -*- coding: utf-8 -*-
# Import pandas to deal with the data
import pandas as pd
# Read CSV - This is the Excel turned into a CSV file.
# No data treatment happened before the CSV file was generated
# You cand find the CSV here https://gist.github.com/JorgeMiguelGomes/c13711f86d51d9171ebee26aae9ea4bb
@JorgeMiguelGomes
JorgeMiguelGomes / flights.csv
Created May 12, 2021 10:25
Flights: Data treatment to generate a node network
We can't make this file beautiful and searchable because it's too large.
Registration Number,Date of Flight (Min),Date of Flight (Max),From (ICAO),To (ICAO),Dep Time,Arr Time
N88ZL,09/01/2001,,CYVR,EGHH,,
N1HC,12/01/2001,,MWCR,UKBB,,
N1HC,13/01/2001,,UKBB,MWCR,,
N2189M,17/01/2001,,UBBB,ETAR,,
N2189M,17/01/2001,,ETAR,EDDF,,
N1HC,19/01/2001,,LLBG,KDET,,
N2189M,22/01/2001,,ETAR,UBBB,,
N2189M,22/01/2001,,EDDF,ETAR,,
N2189M,25/01/2001,,UBBB,ETAR,,
@JorgeMiguelGomes
JorgeMiguelGomes / plotlybasics_01.ipynb
Last active May 11, 2021 06:54
PlotlyBasics_01.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JorgeMiguelGomes
JorgeMiguelGomes / app.py
Last active April 30, 2021 14:21
BUBBLES ANIMATION OVER MAP
#Import Libraries
import pandas as pd
import plotly.express as px
import plotly.io as pio
# Import Configuration File with your mapbox access token
import config