Skip to content

Instantly share code, notes, and snippets.

@matthew-brett
Created February 14, 2020 11:49
Show Gist options
  • Save matthew-brett/b3cee5b3a28276f35cd80e3e2202bbb8 to your computer and use it in GitHub Desktop.
Save matthew-brett/b3cee5b3a28276f35cd80e3e2202bbb8 to your computer and use it in GitHub Desktop.
""" Example to test SQL query
"""
import numpy as np
import pandas as pd
data = pd.DataFrame()
things = np.repeat(['One', 'Two', 'Three'], [100, 10, 1])
np.random.shuffle(things)
data['things'] = things
other_things = np.repeat(['this', 'that'], [70, 41])
data['other_things'] = other_things
data.to_csv('thingies.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment