Skip to main content

Create a script

  • Open Datagrok (e.g. public homepage)
  • Select Browse icon on the left toolbar.
  • Select Datagrok's Scripts section.
  • Click on the "New" button and create a new script in your preferred language.

Default scripts for different languages:

#name: Template
#description: Calculates the number of cells in the table
#language: python
#tags: template, demo
#sample: cars.csv
#input: dataframe table [Data table]
#output: int count [Number of cells in the table]
count = table.shape[0] * table.shape[1]