Skip to content

Commit

Permalink
added scatter two groups gif.
Browse files Browse the repository at this point in the history
  • Loading branch information
djl11 committed Feb 22, 2025
1 parent 32e7d1e commit 0d5e7c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demo_testing/derived_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
unify.activate("derived_entry", overwrite=True)

for _ in range(20):
x = random.random()
y = random.random()
x = random.randint(0, 100)
y = random.randint(0, 100)
unify.log(
x=x,
y=y,
length=(x**2 + y**2)**0.5
# length=(x**2 + y**2)**0.5
)
2 changes: 1 addition & 1 deletion interfaces/plots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ for gender in ["male", "female"]:
In order to plot against both variables, let's create a new derived column called `gender + nationality` with the equation `gender + nationality`.
We can then group by this new column.

GIF
<img class="dark-light" width="100%" src="https://raw.githubusercontent.com/unifyai/unifyai.github.io/refs/heads/main/img/externally_linked/scatter_two_groups_dark.gif"/>

We could then create three plots for example. One which groups by gender, one which groups by location and one which groups by both.
We can then save this and revisit this dashboard again any time in future, whenever more data is added into the project.
Expand Down

0 comments on commit 0d5e7c6

Please sign in to comment.