In this step, we download the pumps dataset and upload it to the session. Then, we create a Synthesizer and fit, to later create a sample.
import pandas as pd
# Load a dataset locally
pums = pd.read_csv("https://content.antigranular.com/image/notebook_content/PUMS.csv")
dataframe cached to server, loading to kernel...
DataFrame loaded successfully to the kernel
# Preview the non-private data
pums
age sex educ race income married
0 59 1 9 1 0.0 1
1 31 0 1 3 17000.0 0
2 36 1 11 1 0.0 1
3 54 1 11 1 9100.0 1
4 39 0 5 3 37000.0 0
... ... ... ... ... ... ...
995 73 0 3 3 24200.0 0
996 38 1 2 3 0.0 0
997 50 0 13 1 22000.0 1
998 44 1 14 4 500.0 1
999 29 1 11 1 66400.0 0
# Import it to AG
session.private_import(data=pums, name="pums")