Exploring Badge Analytics with Python Sets
Exploring Badge Analytics with Python Sets Data Science Project
Python Collections

Exploring Badge Analytics with Python Sets

In this project, you'll dive into Python sets, mastering their manipulation and application in data analysis. Through hands-on tasks with the "DataWars Badge Holders" dataset, learn to perform set operations like union, intersection, and difference. You'll add and remove elements, verify memberships, and explore advanced operations to analyze achievements.
Start this project
Exploring Badge Analytics with Python SetsExploring Badge Analytics with Python Sets
Project Created by

Anurag Verma

Project Activities

All our Data Science projects include bite-sized activities to test your knowledge and practice in an environment with constant feedback.

All our activities include solutions with explanations on how they work and why we chose them.

codevalidated

Course Enrollments and Common Students

Two distinct courses have student enrollments. Develop sets for each course and identify students who are concurrently enrolled in both courses.

Students in Course A: ["Alice", "Bob", "Carol", "David"] Students in Course B: ["Bob", "David", "Eve", "Frank"]

Construct sets for both Course A and Course B as course_a_students and course_b_students. Subsequently, ascertain the students who are enrolled in both courses as common_students.

codevalidated

Unique Keywords in Articles

Keyword lists from two separate articles are provided. Establish sets for each article's keywords and identify the distinctive keywords utilized in both articles.

Keywords in Article 1: ["data", "analysis", "Python", "statistics"] Keywords in Article 2: ["machine learning", "Python", "data", "programming"]

Generate sets for the keywords in both articles, denoting them as article1_keywords and article2_keywords. Determine the unique keywords utilized in both articles and designate them as unique_keywords.

codevalidated

Distinctive Email Addresses

Two distinct sources have provided email addresses. Construct sets for each source's email addresses and uncover the unique email addresses encompassing both sources.

Email addresses from Source A: ["alice@example.com", "bob@example.com", "carol@example.com"] Email addresses from Source B: ["carol@example.com", "david@example.com", "eve@example.com"]

Formulate sets for the email addresses in both sources, labeling them as sourceA_emails and sourceB_emails. Discover the unique email addresses that are present in both sources and assign them as unique_emails.

codevalidated

Add New Student to Data Novice Badge

Incorporate the new student named Sam into the Data Novice badge group.

codevalidated

Remove Student from Badge Sets

Eliminate the student named Elvia from all badge sets as she has left the server.

codevalidated

Find the union of 'Data Explorer' and 'Analytics Enthusiast' badge sets.

Find the union of data_explorer_badge and analytics_enthusiast_badge sets and store the result in a variable named union_de_ae.

The variable union_de_ae is a type set.

multiplechoice

Check if 'Chandler' is in the set

Check if Chandler is in the Badge Insight Seeker.

codevalidated

Find students with `Data Wizard` badge but not with `Data Scientist` badge.

Find students with Data Wizard badge but not with Data Scientist badge and store the result in a variable named data_wizard_not_scientist.

input

Count total number of member in `Analytics Enthusiast` badge

Determine the total number of members who have received the Analytics Enthusiast badge.

Enter your answer in below imput box as an integer.

codevalidated

Find students with badges in `Data Explorer`, `Problem Solver`, and `Data Ninja` categories.

Find students with badges in Data Explorer, Problem Solver, and Data Ninja categories and store the result in a variable named data_explorer_problem_solver_data_ninja.

codevalidated

Find students with `Data Novice` and `Data Detective` badges, but not both.

Find students with Data Novice and Data Detective badges, but not both and store the result in a variable named data_novice_xor_data_detective.

multiplechoice

Check if `Data Detective` badge is a subset of `Insight Seeker` badge.

Check if Data Detective badge is a subset of Insight Seeker badge.

codevalidated

Update `Trend Tracker` Badge Set with Common Students

Perform an update on the Trend Tracker badge set by including students who hold both the Problem Solver and Data Ninja badges. Transfer these common students to the Trend Tracker badge.

Make sure you only add the students to Trend Tracker, do not remove them from any badge.

input

Find the student with the shortest and longest name in the `Data Novice` badge set.

Determine the student with the shortest and longest name within the "Data Novice" badge set.

Provide your response in the box below, separating the shortest student's name from the longest student's name using a comma. For instance: Ella, Maria.

multiplechoice

Check if `Analytics Guru` badge set is a superset of `Python Prodigy` badge set.

Select the correct answer.

Exploring Badge Analytics with Python SetsExploring Badge Analytics with Python Sets
Project Created by

Anurag Verma

What's up, friends! 👋 I'm a computer science student about to finish my last year of college. 🎓 I LOVE writing code! ❤️ It makes me so happy! 😄 Whether I'm goofing in notebooks 📓 or coding in Python 🐍, writing programs is a blast! 💥

What's up, friends! 👋 I'm a computer science student about to finish my last year of college. 🎓 I LOVE writing code! ❤️ It makes me so happy! 😄 Whether I'm goofing in notebooks 📓 or coding in Python 🐍, writing programs is a blast! 💥

This project is part of

Python Collections

Explore other projects