TIL

Today I Learned

Introduction: TIL

eval in Python is Dangerous

Published:
Tags:
Summary: eval is powerful but really dangerous

Materialize the Query Result for Performance

Published:
Summary: Materialize the query result for multistage queries to make your query faster and lower the costs.

Get Current User in BigQuery

Published:
Summary: BigQuery Current User

Generate a Column of Continuous Dates in BigQuery

Published:
Summary: Generate a table with a column of continuous dates

Calculate Moving Average Using SQL/BigQquery

Published:
Summary: Snippet for calculating moving avg using sql/biguqery

BigQuery Meta Tables

Published:
Summary: Meta tables are very useful when it comes to get bigquery table information programmatically.

Auto-reload Python Packages or Python Modules in Jupyter Notebook

Published:
Summary: Python package or python module autoreloading in jupyter notebook

Add New Kernels to Jupyter Notebook in Conda Environment

Published:
Summary: Python package or python module autoreloading in jupyter notebook

Installing requirements.txt in Conda Environments

Published:
Summary: Why is pip install -r requirements.txt not working in conda?

Add Data Files to Python Package

Published:
Tags:
Summary: Add Data Files to Python Package using manifest.in and setup.py

Flatten 2D List in Python

Published:
Tags:
Summary: Flatten 2D list using sum

Python Long String

Published:
Tags:
Summary: Python long string formatting

Python If on Numbers

Published:
Tags:
Summary: If on int is dangerous

Python Datetime on Different OS

Published:
Tags:
Summary: Python datetime on different os behaves inconsistently

Controlled Experiments

Published:
Summary: The three levels of controlled experiments

Pandas with MultiProcessing

Published:
Summary: Adding new data to dataframe using multiprocessing

Fitt's Law

Published:
Tags:
Summary: How fast can you move your mouse to target

Copy Scalars and Lists in Python

Published:
Tags:
Summary: Python copy values of scalars but addresses of lists