Authorized Mode - [Party 2]#
In this tutorial, we will demonstrate how the second party in a collaboration would upload their data to the VDL analysis to be performed by Party 1.
Step 1: Connect to the VDL#
import crandas as cd
import pandas as pd
from crandas.base import session
from pathlib import Path
session.authorization_file = '../trans_signed.json'
session.query_signing_key = '../clientsign.sk'
session.base_path = Path('../')
Step 2: Upload the table to the Virtual Data Lake#
party2_table_vdl = cd.read_csv('party2_dummy.csv', name = 'party2_table_vdl', add_nonce = True)
party2_table_vdl.name = 'party2_table_vdl'
party2_table_vdl
Name: party2_table_vdl
Size: 9931 rows x 8 columns
CIndex([Col("Unnamed: 0", "i", 1), Col("year", "i", 1), Col("month", "i", 1), Col("day", "i", 1), Col("article_nr", "i", 1), Col("batch_nr", "i", 1), Col("smokes", "i", 1), Col("condition_y", "i", 1)])