Survey banner
Switching to Dataiku - a new area to help users who are transitioning from other tools and diving into Dataiku! CHECK IT OUT

Reading Data from another project in jupiter notebooks

Level 1
Reading Data from another project in jupiter notebooks

Hello  I want to read data from another project how do i go about it

0 Kudos
2 Replies

Hi @SharonNasimiyu,


To read the data from another project you can use below code in a Jupiter notebook:

import dataiku


client = dataiku.api_client()
project = client.get_project(project_key)
dataset_input = project.get_dataset(dataset_name).get_as_core_dataset()
df = dataset_input.get_dataframe()  #pandas data frame object


Level 3

Another way to read the dataset is this:


import pandas as pd

path = '/app/dataiku/DSS_DATA_DIR/managed_datasets/REPLACE_WITH_PROJECT/REPLACE_WITH_DATASET/'
df = pd.read_csv(path+'out-s0.csv.gz', compression='gzip', header=0, sep='\t', quotechar='"')


0 Kudos