hollyyfc commited on
Commit
7ea918e
1 Parent(s): 66b64b6

Finish readme

Browse files
Files changed (1) hide show
  1. README.md +87 -90
README.md CHANGED
@@ -14,138 +14,135 @@ pretty_name: tidytuesday4python
14
  # 🔖 TidyTuesday for Python
15
  ## JSON Nested Data of TidyTuesday Projects in 2023-2024
16
 
17
- <!-- Provide a quick summary of the dataset. -->
 
18
 
19
- This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).
 
 
20
 
21
  ## Dataset Details
22
 
23
  ### Dataset Description
24
 
25
- <!-- Provide a longer summary of what this dataset is. -->
26
-
27
-
28
-
29
- - **Curated by:** [More Information Needed]
30
- - **Funded by [optional]:** [More Information Needed]
31
- - **Shared by [optional]:** [More Information Needed]
32
- - **Language(s) (NLP):** [More Information Needed]
33
- - **License:** [More Information Needed]
34
 
35
- ### Dataset Sources [optional]
36
 
37
- <!-- Provide the basic links for the dataset. -->
38
-
39
- - **Repository:** [More Information Needed]
40
- - **Paper [optional]:** [More Information Needed]
41
- - **Demo [optional]:** [More Information Needed]
42
 
43
  ## Uses
44
 
45
- <!-- Address questions around how the dataset is intended to be used. -->
46
-
47
- ### Direct Use
48
-
49
- <!-- This section describes suitable use cases for the dataset. -->
50
-
51
- [More Information Needed]
52
 
53
- ### Out-of-Scope Use
54
-
55
- <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
56
-
57
- [More Information Needed]
58
 
59
  ## Dataset Structure
60
 
61
- <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- [More Information Needed]
64
 
65
  ## Dataset Creation
66
 
67
  ### Curation Rationale
68
 
69
- <!-- Motivation for the creation of this dataset. -->
70
 
71
- [More Information Needed]
72
 
73
  ### Source Data
74
 
75
- <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
76
-
77
- #### Data Collection and Processing
78
-
79
- <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
80
-
81
- [More Information Needed]
82
-
83
- #### Who are the source data producers?
84
-
85
- <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
86
 
87
- [More Information Needed]
88
 
89
- ### Annotations [optional]
90
 
91
- <!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
92
 
93
- #### Annotation process
94
 
95
- <!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
96
 
97
- [More Information Needed]
98
-
99
- #### Who are the annotators?
100
-
101
- <!-- This section describes the people or systems who created the annotations. -->
102
-
103
- [More Information Needed]
104
 
105
  #### Personal and Sensitive Information
106
 
107
- <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
108
-
109
- [More Information Needed]
110
-
111
- ## Bias, Risks, and Limitations
112
-
113
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
114
-
115
- [More Information Needed]
116
-
117
- ### Recommendations
118
-
119
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
120
-
121
- Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
122
-
123
- ## Citation [optional]
124
-
125
- <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
126
-
127
- **BibTeX:**
128
-
129
- [More Information Needed]
130
 
131
- **APA:**
132
 
133
- [More Information Needed]
134
 
135
- ## Glossary [optional]
136
 
137
- <!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
138
 
139
- [More Information Needed]
140
 
141
- ## More Information [optional]
142
 
143
- [More Information Needed]
144
 
145
- ## Dataset Card Authors [optional]
146
 
147
- [More Information Needed]
148
 
149
- ## Dataset Card Contact
150
 
151
- [More Information Needed]
 
14
  # 🔖 TidyTuesday for Python
15
  ## JSON Nested Data of TidyTuesday Projects in 2023-2024
16
 
17
+ - **Homepage**: https://huggingface.co/datasets/hollyyfc/tidytuesday_for_python
18
+ - **Data GitHub Repo**: https://github.com/hollyyfc/tidytuesday-for-python.git
19
 
20
+ This dataset scrapes TidyTuesday datasets from 2023-2024, aiming to make resources in the R community more accessible for Python users. TidyTuesday, a project rooted in the R community, provides weekly datasets for data visualization and wrangling. The datasets are well-formatted (in .csv, .json, and common data file types easily accessible by all users), cleaned, and pre-wrangled by experts, but usually not first-hand information for Python learners to practice. Therefore, the initiative attempts to bridge the resource gap between R and Python communities, fostering shared educational learning and open-source collaboration. This collection includes metadata like date posted, project name, source, description, data dictionaries, data download URLs, and project post repo URLs, and the language used is mainly English.
21
+
22
+ *Note: As a pilot project, the datasets from Tidy Tuesday will be added retrospectively. The baseline is to add all information starting from Jan 2023. Depending on time and availability, data dating back further will also be considered.*
23
 
24
  ## Dataset Details
25
 
26
  ### Dataset Description
27
 
28
+ - **Curated by:** Holly Cui @[hollyyfc](https://hollyyfc.github.io/)
29
+ - **Language(s) (NLP):** English
 
 
 
 
 
 
 
30
 
31
+ ### Dataset Sources
32
 
33
+ - **Repository:** https://github.com/rfordatascience/tidytuesday/tree/master
 
 
 
 
34
 
35
  ## Uses
36
 
37
+ - This dataset can be used for data visualization, statistical analysis, and machine learning NLP tasks. Since it's a compilation of diverse datasets, it supports a variety of tasks and can be used to benchmark different data processing and visualization techniques in Python.
38
+ - This dataset can also be your starting point in discovering various topics of exploration, stepping your feet into unknown territories, and offering insights into the impact that data can realize. Direct view and download links are provided within the data structure.
39
+ - By referring to TidyTuesday, you have the ability to discover the specialties of both Python and R, choose wisely on different packages or features that each language offers, or even learn a new language based on the one you’re familiar with!
 
 
 
 
40
 
 
 
 
 
 
41
 
42
  ## Dataset Structure
43
 
44
+ The dataset is stored in a JSON nested, hierarchical structure. Refer below for a detailed depiction of the variable organization.
45
+
46
+ ### Data Instances
47
+
48
+ ```python
49
+ {
50
+ "date_posted": "YYYY-MM-DD",
51
+ "project_name": "Example project name for one post",
52
+ "project_source": ["https://example-tidytuesday-post-source/", ...],
53
+ "description": "Project description excerpted from TidyTuesday repo",
54
+ "data_source_url": "https://example-tidytuesday/date/repo",
55
+ "data_dictionary": [
56
+ {
57
+ "variable": [variable1, variable2, ...],
58
+ "class": [class_type1, class_type2, ...],
59
+ "description": ["Description of var1", "Description of var2", ...]
60
+ },
61
+ ...
62
+ ],
63
+ "data": {
64
+ "file_name": [
65
+ "data1.csv",
66
+ "data2.csv",
67
+ ...
68
+ ],
69
+ "file_url": [
70
+ "https://example-tidytuesday/view-link-to-data1",
71
+ "https://example-tidytuesday/view-link-to-data2",
72
+ ...
73
+ ]
74
+ },
75
+ "data_load": {
76
+ "file_name": [
77
+ "data1.csv",
78
+ "data2.csv",
79
+ ...
80
+ ],
81
+ "file_url": [
82
+ "https://example-tidytuesday/download-link-to-data1",
83
+ "https://example-tidytuesday/download-link-to-data2",
84
+ ...
85
+ ]
86
+ }
87
+ }
88
+ ```
89
+
90
+ ### Data Fields
91
+
92
+ - `date_posted`: The date when the weekly project was posted *(YYYY-MM-DD str)*.
93
+ - `project_name`: The name of the weekly project *(str)*.
94
+ - `project_source`: A list of URLs to the project's data and information source *(List[str])*.
95
+ - `description`: A brief excerpt of the project and dataset description *(str)*.
96
+ - `data_source_url`: The URL to the weekly project repository *(str)*.
97
+ - `data_dictionary`: A list of dictionaries, each containing the variable names, classes, and descriptions for each dataset *(List[Dict[str: List[str]]])*.
98
+ - `data`: A dictionary of dataset names and links to view. The values of the keys `file_name` and `file_url` are organized in list fashion.
99
+ - `data_load`: A dictionary of dataset names and links to direct download. The values of the keys `file_name` and `file_url` are organized in list fashion *(Dict[str: List[str]])*.
100
 
 
101
 
102
  ## Dataset Creation
103
 
104
  ### Curation Rationale
105
 
106
+ The genesis of this dataset was rooted in a personal quest to bridge the gap between the R and Python communities, particularly in the realm of data visualization and wrangling. As an avid data enthusiast, I often encountered challenges in discovering captivating projects and datasets to fuel my own analytical endeavors. Tidy Tuesday, with its weekly release of diverse and engaging datasets, presented a goldmine of opportunities. However, I noticed a disconnect - these datasets, predominantly tailored for the R community, were not as readily accessible or structured for Python users. This realization sparked the ambition to create a centralized, Python-friendly repository of TidyTuesday's 2023 datasets. By doing so, the dataset aims to democratize access to these rich resources, fostering a shared learning environment and stimulating innovation across both R and Python communities.
107
 
108
+ The dataset has been crafted to include essential metadata like the date posted, project name, data source, and a comprehensive description. What makes it stand out is the inclusion of a nested data structure for both the data dictionary and the actual data, tailored to enhance user experience and accessibility. This structure not only addresses the challenges I faced in finding and utilizing interesting datasets for personal projects but also streamlines the process for others facing similar hurdles. The ultimate goal is to create a vibrant, interactive playground where enthusiasts from both communities can converge, collaborate, and contribute, thereby enriching the data science landscape with diverse perspectives and insights.
109
 
110
  ### Source Data
111
 
112
+ The major source of data is directly from the [TidyTuesday](https://github.com/rfordatascience/tidytuesday) official site. Initial data collection and normalization were conducted collaboratively by the organizers of Tidy Tuesday and data runners within the R community. Since it is an R-oriented initiative, the source language, example files, and authors' dataset cleanings were mostly done in R.
 
 
 
 
 
 
 
 
 
 
113
 
114
+ #### Who are the original source data producers?
115
 
116
+ The source data come from a variety of fields, including but not limited to the R community, TidyTuesday collaborators, interesting web postings, and scholarly papers. Details of each week's data sources can be retrieved from the `project_source` variable. Descriptions of the sources can also be found as part of the `description` variable.
117
 
118
+ ### Data Collection and Processing
119
 
120
+ The data collection process involved several key stages, starting with the use of Python libraries `requests` and `BeautifulSoup` to programmatically navigate the repository and extract post dates and URLs for selected years. This initial step was crucial for mapping out the structure of the data collection effort.
121
 
122
+ Subsequent to this foundational step, detailed scraping scripts were developed to delve into individual post URLs, extracting the variable-specific information. Special attention was paid to the HTML structure of the TidyTuesday posts to ensure accurate and efficient data extraction. This process was iterative and adaptive, with scripts being refined to handle inconsistencies in post structures and to ensure comprehensive data capture.
123
 
124
+ The resultant dataset is presented in both CSV and JSON formats, providing flexibility for analysis and application. The JSON format, in particular, was structured to facilitate easy integration into Python environments, with nested objects and hierarchical data representations designed for intuitive access and manipulation. This meticulous approach to data collection and processing ensures that the dataset is not only comprehensive and detailed but also ready for immediate use in a wide range of data analysis, machine learning, and data visualization projects. The full dataset, along with subsets for training and validation, has been made available [HERE](https://github.com/hollyyfc/tidytuesday-for-python.git) on GitHub, ensuring open access for researchers, data scientists, and enthusiasts interested in exploring social data trends. My cleaning and preprocessing codebook can also be retrieved there.
 
 
 
 
 
 
125
 
126
  #### Personal and Sensitive Information
127
 
128
+ Due to the open-source nature of TidyTuesday, the data and information provided in this dataset will not encounter sensitivity issues. However, any links and datasets will be double-checked to ensure compliance with the regulations.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
 
130
 
131
+ ## Considerations for Using the Data
132
 
133
+ ### Social Impact of Dataset
134
 
135
+ This dataset, which amalgamates TidyTuesday 2023-2024 datasets into a Python-friendly format, is designed to have a social and educational impact on the data science community. By making these datasets more accessible to Python users, it fosters a more inclusive and diverse analytical environment. The initiative encourages cross-community collaboration and learning, breaking down barriers between R and Python practitioners. This aids in skill development and knowledge sharing but promotes a culture of open-source contribution. In providing a variety of datasets from different domains, this collection serves as a launchpad for innovative projects and analyses, potentially leading to new insights and discoveries that can benefit various fields. However, it's important to consider the impact of this data when used for decision-making, as insights drawn from it could influence societal perceptions and actions in diverse sectors.
136
 
137
+ ### Discussion of Biases
138
 
139
+ While the dataset serves as a rich resource, it's crucial to acknowledge the potential biases inherent in its composition. The TidyTuesday project, primarily driven by contributions and selections from the R community, may reflect the interests and perspectives of its contributors, which might not fully represent the broader data science community. This can lead to certain topics or domains being overrepresented while others are underrepresented. Users should be mindful of these biases when drawing conclusions or generalizations from analyses conducted on this dataset. It's advisable to use this dataset in conjunction with other sources to ensure a more balanced and comprehensive view of the subject matter at hand.
140
 
141
+ ### Other Known Limitations
142
 
143
+ One of the known limitations of this dataset is its dependency on the nature and structure of the original TidyTuesday datasets. Since these datasets are curated for weekly challenges, they might not always be comprehensive or suitable for all types of analytical tasks. Additionally, the dataset's structure, with nested dataframes, while beneficial for accessibility and ease of use, may present challenges in certain types of data processing or analysis tasks. Users should be aware of these limitations and consider them when choosing this dataset for their specific needs or projects. Moreover, as the dataset is a compilation of weekly releases from 2023, it may not include the most up-to-date data or cover trends and topics beyond this period.
144
 
 
145
 
146
+ ## Dataset Contact
147
 
148
+ Holly Cui ([Email](mailto:yifan.cui@duke.edu) | [Website](https://hollyyfc.github.io/) | [GitHub](https://github.com/hollyyfc))