Skip to content

Instantly share code, notes, and snippets.

View JustGlowing's full-sized avatar

Giuseppe Vettigli JustGlowing

View GitHub Profile
@JustGlowing
JustGlowing / matplotlib_layout.py
Created May 14, 2021 15:21
matplotlib layout
import matplotlib.pyplot as plt
import matplotlib as mpl
from cycler import cycler
colors_cycle = ['#30a2da', '#fc4f30', '#e5ae38', '#6d904f', '#8b8b8b']
mpl.rcParams['axes.edgecolor'] = '#999999'
mpl.rcParams['axes.grid'] = True
mpl.rcParams['grid.color'] = '#999999'
mpl.rcParams['axes.labelsize'] = 18
mpl.rcParams['axes.labelweight'] = 2
TOTAL Très positif Very positive Plutôt positif Fairly positive Plutôt négatif Fairly negative Très négatif Very negative NSP DK Total 'Positif' Total 'Positive' Total 'Négatif' Total 'Negative'
CZ 1001 44 4 336 34 335 33 219 22 67 7 380 38 554 55
SK 1013 87 9 378 37 354 35 134 13 61 6 465 46 488 48
BG 1026 151 15 400 39 221 21 125 12 129 13 552 54 346 33
CY 505 31 6 203 40 135 27 117 23 19 4 234 46 252 50
MT 502 52 10 212 42 176 35 37 8 25 5 263 52 213 43
IT 1021 81 8 442 43 305 30 157 15 36 4 523 51 462 45
RO 1042 107 10 453 44 322 31 67 6 94 9 560 54 389 37
LV 1000 47 5 437 44 324 32 130 13 63 6 484 49 453 45
EL 1004 127 13 442 44 253 25 157 16 25 2 569 57 410 41
@JustGlowing
JustGlowing / f2m_ratios.csv
Created May 2, 2017 14:11
The ratio of males to females in the population by age. Available in all scenarios and at all geographical scales. It is expressed as the number of males per female. Data for 1970 to 2010.
We can't make this file beautiful and searchable because it's too large.
Source: Wittgenstein Centre for Demography and Global Human Capital (2015). Wittgenstein Centre Data Explorer Version 1.2.
Available at: www.wittgensteincentre.org/dataexplorer
Note: Your selection includes at least one country with limited base year data on educational attainment. Please consult the FAQ for more information
""
"Sex Ratio"
"The ratio of males to females in the population by age. Available in all scenarios and at all geographical scales. It is expressed as the number of males per female. <br><br> Data for 1970 to 2010: Based on <a href=""http://esa.un.org/wpp/documentation/WPP%202010%20publications.htm"">UN Population Division, World Population Prospects 2010</a> "
"Medium (SSP2)"
" "
"Area","Year","Age","Ratio"
"Afghanistan",1970,"All",1.08
@JustGlowing
JustGlowing / f2m_rations.csv
Created May 2, 2017 14:11
The ratio of males to females in the population by age. Available in all scenarios and at all geographical scales. It is expressed as the number of males per female. Data for 1970 to 2010.
We can't make this file beautiful and searchable because it's too large.
Source: Wittgenstein Centre for Demography and Global Human Capital (2015). Wittgenstein Centre Data Explorer Version 1.2.
Available at: www.wittgensteincentre.org/dataexplorer
Note: Your selection includes at least one country with limited base year data on educational attainment. Please consult the FAQ for more information
""
"Sex Ratio"
"The ratio of males to females in the population by age. Available in all scenarios and at all geographical scales. It is expressed as the number of males per female. <br><br> Data for 1970 to 2010: Based on <a href=""http://esa.un.org/wpp/documentation/WPP%202010%20publications.htm"">UN Population Division, World Population Prospects 2010</a> "
"Medium (SSP2)"
" "
"Area","Year","Age","Ratio"
"Afghanistan",1970,"All",1.08
@JustGlowing
JustGlowing / tv_data.csv
Created April 19, 2016 08:21
Sample Data for Decision Trees
Customer Price Display_size Colour BuyTV
1 2000 32 black No
2 1000 32 black Yes
3 2000 56 black No
4 1000 40 white Yes
5 1500 56 white Yes
6 2000 56 black No
7 1500 56 white Yes
8 1500 32 white No
@JustGlowing
JustGlowing / FreeTechLab_regression.ipynb
Last active April 13, 2016 08:43
Free Tech Lab 13 April 2016
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JustGlowing
JustGlowing / EBG-671_bo_problems.ipynb
Last active August 29, 2015 14:08
EBG-671_bo_problems
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.