- Propreitary Software, R, Python, SQL, Gephi
- Tableau; Excel; Access
- SPSS in the application of psych statistics and research methods
- Tableau, SQL, SPSS, R and other statistical tools.
- SSMS, R, SSAS
- Python, Matplotlib, Disco...
- Proprietary
- R, SPSS, SAS, Relational DB
This file contains 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 brewery2 import k, open_store, FieldList | |
DATA_TARGET = [ | |
[1, "Janko", "Bratislava"], | |
[2, "Marienka", "Bratislava"], | |
[3, "Jaga", "Zvolen"] | |
] | |
DATA_SRC = [ | |
[1, "Janko", "Bratislava"], |
This file contains 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 brewery2 import Pipeline, open_store | |
stores = { | |
"source": open_store("sql", "postgres://localhost/crm", schema="app"), | |
"target": open_store("sql", connectable=source_store.connectable, schema="cubes") | |
} | |
p = Pipeline(stores=stores) | |
p.source("source", "crm_contact") | |
p.field_filter(keep=["id", |
This file contains 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 bubbles | |
stores = { "target": bubbles.open_store("sql", "sqlite:///") } | |
p = bubbles.Pipeline(stores=stores) | |
p.source_object("csv_source", resource="data.csv", infer_fields=True) | |
# Uncomment this and see the difference in logs - SQL will be used | |
# p.create("target", "data") |
This file contains 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 bubbles import Pipeline, open_store | |
stores = { | |
"source": open_store("csv", "data/source", encoding="utf16", infer_fields=True), | |
"target": open_store("sql", "sqlite:///data.sqlite") | |
} | |
p = Pipeline(stores=stores) | |
# Load customers into a SQL table |
This file contains 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 bubbles import Pipeline, FieldList, data_object, open_store | |
# Sample order data with fields: | |
fields = FieldList( | |
["id", "integer"], | |
["customer_id", "integer"], | |
["year", "integer"], | |
["amount", "integer"] | |
) |
This file contains 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
class SQLAlchemyExpressionCompiler(object): | |
def __init__(self, statement): | |
# Context of this compiler is a SQLAlchemy statement object | |
self.statement = statement | |
def compile_literal(self, literal): | |
return literal | |
def compile_variable(self, variable): | |
# Get a column object from the statement |
This file contains 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
# Demo: | |
# | |
# Aggregate population per independence type for every year | |
# Sources: Population and Country Codes datasets | |
# | |
from bubbles import Pipeline | |
# List of stores with datasets. In this example we are using the "datapackage" | |
# store |
This file contains 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
# Demo: | |
# | |
# Aggregate population per independence type for every year | |
# Sources: Population and Country Codes datasets | |
# | |
from bubbles import Pipeline | |
from bubbles import get_logger | |
logger = get_logger() |
This file contains 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 bubbles import Pipeline | |
stores = { | |
"target": {"type": "csv", "path": "."} | |
} | |
p = Pipeline(stores=stores) | |
p.source_object("xls", resource="cpv_2008_ver_2013.xlsx") | |
p.transpose_by("CODE", "country", "label") |