Skip to content

Instantly share code, notes, and snippets.

View PaddyAlton's full-sized avatar

Paddy Alton PaddyAlton

View GitHub Profile
@PaddyAlton
PaddyAlton / bigquery_results_copy.py
Last active September 16, 2022 14:37
Two functions for dumbly copying BigQuery results from the UI and printing them in a format fit for Slack
def ctrlc_bigquery():
"""
ctrlc_bigquery
Dumb function to make it super easy to copy/paste BigQuery results from the UI
and print them in a nice format (e.g. dump into Slack in a code block)
"""
from pandas.io.clipboard import clipboard_get
text = clipboard_get()

Keybase proof

I hereby claim:

  • I am paddyalton on github.
  • I am paddyalton (https://keybase.io/paddyalton) on keybase.
  • I have a public key ASAwTpcB3nDa7VKRLTdRRgZ_bU1yC4TrUksrAplF29JmrQo

To claim this, I am signing this object: