Shimoku docs
Search…
Excels and csv
One can create a Data web app retrieving data from .csv or excel files thanks to Pandas and Shimoku.
from os import getenv
import pandas as pd
import shimoku_api_python as Shimoku
shimoku = Shimoku.Client(
config={'access_token': getenv('SHIMOKU_TOKEN')},
universe_id=getenv('UNIVERSE_ID'),
)
# Get data from a .csv
filename = 'daily_sales.csv'
df = pd.read_csv(daily_sales, sep=';')
# Load data to Shimoku
shimoku.plt.line(
data=df, x='date', y=['revenue'],
menu_path='New page',
)
Copy link