Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CloudPak-Outcomes
GitHub Repository: CloudPak-Outcomes/Outcomes-Projects
Path: blob/main/Data-Product-Hub-L3/2-DataProductDelivery.ipynb
1928 views
Kernel: Python 3.11

Import Variables and Flight Service

import itc_utils.flight_service as itcfs readClient = itcfs.get_flight_client() Customer_data_request = ## PASTE CUSTOMER FLIGHT SERVICE CONNECTION INFO HERE Employee_data_request =## PASTE CUSTOMER FLIGHT SERVICE CONNECTION INFO HERE Historical_data_request =## PASTE CUSTOMER FLIGHT SERVICE CONNECTION INFO HERE

Flight Function for Data Request

def get_flight_data(data_request): flight_info = itcfs.get_flight_info(readClient, data_request=data_request) data = itcfs.read_pandas_and_concat(readClient, flight_info) return data.head(5)

Retrieve Customer Loyalty Data

get_flight_data(Customer_data_request)

Retrieve Employee Data

get_flight_data(Employee_data_request)

Retrieve Historical Data

get_flight_data(Historical_data_request)