Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assorted typos #591

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion episodes/05-merging-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ have been repeated. We can reindex the new DataFrame using the `reset_index()` m

### Writing Out Data to CSV

We can use the `to_csv` command to do export a DataFrame in CSV format. Note that the code
We can use the `to_csv` command to export a DataFrame in CSV format. Note that the code
below will by default save the data into the current working directory. We can
save it to a different folder by adding the foldername and a slash to the file
`vertical_stack.to_csv('foldername/out.csv')`. We use the `index=False` so that
Expand Down
8 changes: 4 additions & 4 deletions episodes/07-visualization-ggplot-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ to the color aesthetic:
)
```

![](fig/06_color_plot.png){alt='scatter plot of Hindfoot length vs weight with colors coordinating to specfic species, showing abundance in the mid to lower left side of the plot'}
![](fig/06_color_plot.png){alt='scatter plot of Hindfoot length vs weight with colors coordinating to specific species, showing abundance in the mid to lower left side of the plot'}

Apart from the adaptations of the arguments and settings of the `data`, `aes`
and `geom-*` elements, additional elements can be added as well, using the `+`
Expand All @@ -248,7 +248,7 @@ operator:
)
```

![](fig/06_color_label_plot.png){alt='scatter plot of Hindfoot length vs weight (g) with colors coordinating to specfic species, showing abundance in the mid to lower left side of the plot'}
![](fig/06_color_label_plot.png){alt='scatter plot of Hindfoot length vs weight (g) with colors coordinating to specific species, showing abundance in the mid to lower left side of the plot'}

- Defining scale for colors, axes,... For example, a log-version of the x-axis
could support the interpretation of the lower numbers:
Expand Down Expand Up @@ -387,7 +387,7 @@ mapping of a variable, `plotnine` will handle the values as category values.

## Plotting time series data

Let's calculate number of counts per year for each species. To do that we need
Let's calculate the number of counts per year for each species. To do that we need
to group data first and count the species (`species_id`) within each group.

```python
Expand Down Expand Up @@ -567,7 +567,7 @@ following example of a bar plot with the counts per year.
)
```

![](fig/06_overlap_bars.png){alt='Bar graph of count per year showing ovelapping x-axis labels'}
![](fig/06_overlap_bars.png){alt='Bar graph of count per year showing overlapping x-axis labels'}

Notice that we use the `year` here as a categorical variable by using the
`factor` functionality. However, by doing so, we have the individual year
Expand Down
Loading