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

National power rangers' day data and images! #733

Merged
merged 18 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from 12 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions data/curated/power_rangers/cleaning.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
library(tidyverse)
# source for seasons
"https://www.kaggle.com/datasets/karetnikovn/power-rangers-dataset/data"

# Source for episodes
"https://www.kaggle.com/datasets/karetnikovn/power-rangers-dataset/data"

power_rangers_seasons <- readr::read_csv("data/curated/power_rangers/seasons.csv")

power_rangers_episodes <- readr::read_csv("data/curated/power_rangers/episodes.csv") %>%
mutate(air_date = mdy(air_date))
923 changes: 923 additions & 0 deletions data/curated/power_rangers/episodes.csv

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions data/curated/power_rangers/instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Prepare the dataset

These instructions are for preparing a dataset using the R programming language.
We hope to provide instructions for other programming languages eventually.

If you have not yet set up your computer for submitting a dataset, please see the full instructions at <https://github.com/rfordatascience/tidytuesday/blob/master/.github/pr_instructions.md>.

1. `cleaning.R`: Modify the `cleaning.R` file to get and clean the data.
- Write the code to download and clean the data in `cleaning.R`.
- If you're getting the data from a github repo, remember to use the 'raw' version of the URL.
- This script should result in one or more data.frames, with descriptive variable names (eg `players` and `teams`, not `df1` and `df2`).
2. `saving.R`: Use`saving.R` to save your datasets. This process creates both the `.csv` file(s) and the data dictionary template file(s) for your datasets. **It is not enough to simply save the CSV files using a separate process. We also need the data dictionaries.**
- Run the first line of `saving.R` to create the functions we'll use to save your dataset.
- Provide the name of your directory as `dir_name`.
- Use `ttsave()` for each dataset you created in `cleaning.R`, substituting the name fo the dataset for `YOUR_DATASET_DF`.
3. `{dataset}.md`: Edit the `{dataset}.md` files to describe your datasets. There should be one file for each of your datasets. You most likely only need to edit the "description" column to provide a description of each variable.
4. `intro.md`: Edit the `intro.md` file to describe your dataset. You don't need to add a `# Title` at the top; this is just a paragraph or two to introduce the week.
5. Find at least one image for your dataset, and ideally two. These often come from the article about your dataset. If you can't find an image, create an example data visualization, and save that. Save the images in your folder as `png` files.
6. `meta.yaml`: Edit `meta.yaml` to provide information about your dataset. Also provide information about how we can credit you in the `credit` block, and delete lines from this block that do not apply to you.

### Submit your pull request with the data

1. Commit the changes in this folder to your branch. In RStudio, you can do this on the "Git" tab (the "Commit" button).
2. Submit a pull request to https://github.com/rfordatascience/tidytuesday. In R, you can do this with `usethis::pr_push()`, and then follow the instructions in your browser.
10 changes: 10 additions & 0 deletions data/curated/power_rangers/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This week's dataset comes from Kaggle's [Power Rangers Dataset](https://www.kaggle.com/datasets/karetnikovn/power-rangers-dataset/data)!

> In 1993, five ordinary teenagers exploded on the pop-culture scene with the launch of Mighty Morphin Power Rangers. Together they broke down barriers. They defeated evil by demonstrating teamwork, inclusivity, and diversity to people of all ages. Today, this grand tradition continues as new Ranger teams and new generations of fans discover these essential values again.
The series, created by Haim Saban, has one of the most popular taglines in history, "It's Morphin Time!" The TV series "Mighty Morphin Power Rangers" (MMPR) launched on August 28, 1993. Power Rangers quickly became the #1 kids action brand and a global phenomenon. With its current 25th season, "Power Rangers Super Ninja Steel," the show is now the second-longest-running, non-soap-opera, scripted program on American TV (after "The Simpsons"). There are also over 830 episodes in its library. Currently, Power Rangers is seen in more than 150 markets around the world. It's also translated into numerous languages and is a favorite on many indispensable children's programming blocks around the world. Go Go Power Rangers on 8.28!

Source: [NationalDayCalendar.com](https://www.nationaldaycalendar.com/national-day/national-power-rangers-day-august-28)

What can you and your data analysis skills tell us about the Power Rangers' Franchise?

What were the most popular seasons? Which season of rangers lasted the longest on screen? Which was your favourite ranger and why?
18 changes: 18 additions & 0 deletions data/curated/power_rangers/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
title: The Power Rangers Franchise
article:
title: National Power Rangers Day (August 28)
url: https://www.nationaldaycalendar.com/national-day/national-power-rangers-day-august-28
data_source:
title: Power Rangers: Seasons and episodes data
jonthegeek marked this conversation as resolved.
Show resolved Hide resolved
url: https://www.kaggle.com/datasets/karetnikovn/power-rangers-dataset/data
images:
# Please include at least one image, and up to three images
- file: National-Power-Rangers-Day.png
alt: National Power Rangers Day Mighty Morphin' Power Rangers
- file: national-power-rangers-day--august-28.png
alt: National Power Rangers Day, August 28, by NationalDayCalendar.com #CelebrateEveryDay. cartoon representations of the Power Rangers face off against some of their iconic villains.
jonthegeek marked this conversation as resolved.
Show resolved Hide resolved
credit:
# If you do not want a particular type of credit, please delete the related line
post: Tinashe M. Tapera
linkedin: https://www.linkedin.com/in/tinashemtapera

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading