Skip to content

Commit

Permalink
Add block pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Merlin04 committed Jun 21, 2021
1 parent 19d9a78 commit fcb553d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pages/blocks/dataframes.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# DataFrames

A *DataFrame* is essentially a container for a dataset. It keeps track of all of the different columns and lets you do actions on them like swapping rows and columns.

## Matrix

## Empty DataFrame

## DataFrame with headers and data

## `file.csv` as DataFrame

## Transpose DataFrame

## Select columns from DataFrame

## Get column from DataFrame as array
3 changes: 3 additions & 0 deletions pages/blocks/machine-learning/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
7 changes: 7 additions & 0 deletions pages/blocks/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"values": "Values",
"dataframes": "DataFrames",
"plots": "Plots",
"machine-learning": "Machine learning",
"other-categories": "Other categories"
}
3 changes: 3 additions & 0 deletions pages/blocks/other-categories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Other categories

Any other blocks are part of Blockly's default blocks. You can find documentation for them [here](https://github.com/google/blockly/wiki). Note that we use the plus/minus plugin, so instead of regular "mutators" (the gear thing you might see in some screenshots) you will need to use the plus and minus icons on blocks.
11 changes: 11 additions & 0 deletions pages/blocks/plots.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Plots

The plots category lets you control the "Data Visualization" tab in the editor, letting you graph data in various types of plots.

## Set plot title

## Add series to plot

## Remove series with title

## Reset plot
11 changes: 11 additions & 0 deletions pages/blocks/values.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Values

The values category only contains a few blocks:

![Screenshot of blocks in values category](/values-blocks.png)

These blocks are used for connecting some sort of value to another block. For example, you could connect a number value block to a set variable block to set that variable to the number:

![Screenshot of blocks reading set My number to 5](/values-example.png)

All of these blocks are available in other categories, but they are provided here as well to make accessing them easier.
Binary file added public/values-blocks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/values-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit fcb553d

@vercel
Copy link

@vercel vercel bot commented on fcb553d Jun 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.