def dataframe_to_bigquery(df):
    """Writes a DataFrame to Big Query. Column names will be downcased and
    all non-alphanumeric characters converted to underscores."""
    df.columns = df.columns.str.strip().str.lower().str.replace('[^\\w]', '_')
