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
#Several qualitative color palettes that are colorblind friendly | |
#From Paul Tol: https://personal.sron.nl/~pault/ | |
#Code to generate vectors in R to use these palettes | |
Tol_bright <- c('#EE6677', '#228833', '#4477AA', '#CCBB44', '#66CCEE', '#AA3377', '#BBBBBB') | |
Tol_vibrant <- c('#EE7733', '#0077BB', '#33BBEE', '#EE3377', '#CC3311', '#009988', '#BBBBBB') | |
Tol_muted <- c('#332288', '#88CCEE', '#44AA99', '#117733', '#999933', '#DDCC77', '#CC6677', '#882255', '#AA4499', '#DDDDDD') | |
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 cassandra.cluster import Cluster | |
from cassandra.auth import PlainTextAuthProvider | |
import pandas as pd | |
def pandas_factory(colnames, rows): | |
return pd.DataFrame(rows, columns=colnames) | |
cluster = Cluster( | |
contact_points=['127.0.0.1'], | |
auth_provider = PlainTextAuthProvider(username='cassandra', password='cassandra') |