docker build -t devopstestlab/gridstudio .
docker run --name=gridstudio --rm -p 8080:8080 -p 4430:4430 -p 3000:3000 devopstestlab/gridstudio
open http://localhost:8080/
# Read all data
df = pd.read_csv("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv").dropna()
print(df.head())
# Convert date to integer (because of Grid Studio limitation)
df.dateRep = pd.to_datetime(df.dateRep, format='%d/%m/%Y').dt.strftime('%Y%m%d').astype(int)
# Filtrer
# Get Australia data
df_oz = df[df.countriesAndTerritories == 'Australia']
# select only the dateRep, cases and deaths columns.
df_oz = df_oz[['dateRep', 'cases', 'deaths']]
# calculate the cumulative cases and deaths.
df_oz = df_oz.sort_values('dateRep')
df_oz['cumCases'] = df_oz.cases.cumsum()
df_oz['cumDeaths'] = df_oz.deaths.cumsum()
# Show in sheet
sheet("A1", df_oz)
# Pandas / Plot
data = sheet("B1:B40")
data.plot(title='Daily New Cases')
show()
Grid studio is a web-based spreadsheet application with full integration of the Python programming language.
It intends to provide an integrated workflow for loading, cleaning, manipulating, and visualizing data. This is achieved through a spreadsheet backend written in Go with integration of the Python runtime to manipulate its contents.
The application is structured in two parts:
For more details about each part check out the code in the repository. If anything is unclear (or unreadable - not all code is equally pretty!) make an issue and details will be provided.
To run Grid studio locally refer to the Installation page of the Wiki.
It comes down to pulling the latest Grid studio Docker image that has all dependencies configured (mainly: Go language, Python 3 with packages, Node.js) and starting the Docker container.
For more information check out our Wiki.
If don't want to install Grid studio locally you can try out the beta of the hosted version here: https://dashboard.gridstudio.io.
Content type
Image
Digest
Size
830.1 MB
Last updated
over 6 years ago
docker pull devopstestlab/gridstudio