ricklamers / gridstudio

Grid studio is a web-based application for data science with full integration of open source data science frameworks and languages.
GNU Affero General Public License v3.0
8.88k stars 1.5k forks source link

how to load external data #136

Open weidongzhou1994 opened 4 years ago

weidongzhou1994 commented 4 years ago

as title image

tapattan commented 3 years ago

step1. Edit file "init.py" and modify path.

for Example (workspace-yourself) from "/home/user" -> if os.path.isdir("/home/userdata/workspace-7bd67aaa-594f-4ada-b6e7-4f35d654c154"): os.chdir("/home/userdata/workspace-7bd67aaa-594f-4ada-b6e7-4f35d654c154")

step2. and copy your "file.csv" into "sheetdata" then

step3. import pandas as pd path = "sheetdata/" file = "predator_dataset.csv" df = pd.read_csv(path+file,header=None) sheet("A1",df)