{"id":27957518,"url":"https://github.com/farhad-here/student_performance_analyzer","last_synced_at":"2025-06-27T10:07:11.550Z","repository":{"id":290853051,"uuid":"975540738","full_name":"farhad-here/Student_Performance_Analyzer","owner":"farhad-here","description":"Student Performance Analyzer with python, it is on of my data analysis course project. I teach you about filter(),lambda,map() in python","archived":false,"fork":false,"pushed_at":"2025-05-29T07:43:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T10:06:56.847Z","etag":null,"topics":["data-analysis","data-visualization","filter","kaggle","kaggle-dataset","lambda","map","pandas","python","python-tutorial","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farhad-here.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-30T13:36:18.000Z","updated_at":"2025-05-29T07:43:09.000Z","dependencies_parsed_at":"2025-06-27T10:06:57.957Z","dependency_job_id":null,"html_url":"https://github.com/farhad-here/Student_Performance_Analyzer","commit_stats":null,"previous_names":["farhad-here/student_performance_analyzer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/farhad-here/Student_Performance_Analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhad-here%2FStudent_Performance_Analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhad-here%2FStudent_Performance_Analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhad-here%2FStudent_Performance_Analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhad-here%2FStudent_Performance_Analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farhad-here","download_url":"https://codeload.github.com/farhad-here/Student_Performance_Analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhad-here%2FStudent_Performance_Analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262235779,"owners_count":23279566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-analysis","data-visualization","filter","kaggle","kaggle-dataset","lambda","map","pandas","python","python-tutorial","streamlit"],"created_at":"2025-05-07T18:13:23.239Z","updated_at":"2025-06-27T10:07:11.439Z","avatar_url":"https://github.com/farhad-here.png","language":"Python","readme":"# 🎓 Student Score Insights\n\nThis project analyzes the **Students Performance in Exams** dataset using Python's functional programming tools (`map`, `filter`, and `lambda`) and builds an interactive web dashboard using **Streamlit**.\n\n## 📂 Dataset\n\nWe use the **Students Performance in Exams** dataset, which includes:\n- Gender\n- Race/ethnicity\n- Parental level of education\n- Lunch type\n- Test preparation course\n- Math score\n- Reading score\n- Writing score\n\n📌 [Download Dataset from Kaggle](https://www.kaggle.com/datasets/spscientist/students-performance-in-exams)\n\n---\n\n## 🚀 Features\n\n- Clean and preprocess the dataset\n- Use `filter()` to select students based on specific criteria\n- Use `map()` to apply calculations (like average scores) to each student\n- Use `lambda` functions for quick and readable inline operations\n- Display results and visualizations using **Streamlit**\n\n---\n\n## 🛠️ How to Run\n\n1. Clone the repo:\n\n   ```bash\n   git clone https://github.com/your-username/student-score-insights.git\n   cd student-score-insights\n\n# `lambda`\n\n## 📌What is `lambda` in Python?\n\nA `lambda` function is an **anonymous (nameless)** function in Python. It's used when you need a **simple, short function** and don't want to formally define it using `def`.\n\n### 🔧 Syntax:\n\n```python\nlambda arguments: expression\n```\n\n### ✅ Example:\n```python\nsquare = lambda x: x * x\nprint(square(5))  # Output: 25\n```\nThis is the same as:\n```python\ndef square(x):\n    return x * x\n```\n\n### 💡 Use Cases:\n- Used with functions like `map()`, `filter()`, `sorted()`, etc.\n- Best for short, one-line functions.\n\n\n# `map()`\n\n## 📌 What is `map()` in Python?\n\n`map()` applies a **function** to **every item** in an iterable (like a list or tuple).\n\n### 🔧 Syntax:\n```python\nmap(function, iterable)\n```\n\n### ✅ Example 1 — with `lambda`:\n```python\nnums = [1, 2, 3, 4]\ndoubled = list(map(lambda x: x * 2, nums))\nprint(doubled)  # Output: [2, 4, 6, 8]\n```\n\n### ✅ Example 2 — with a defined function:\n```python\ndef square(x):\n    return x * x\n\nnums = [1, 2, 3]\nsquared = list(map(square, nums))\nprint(squared)  # Output: [1, 4, 9]\n```\n\n---\n# `filter()`\n\n## 📌 What is `filter()` in Python?\n\n`filter()` is used to **filter items** from an iterable using a **condition (function)** that returns `True` or `False`.\n\n### 🔧 Syntax:\n```python\nfilter(function, iterable)\n```\n\n### ✅ Example:\n```python\nnums = [1, 2, 3, 4, 5]\neven = list(filter(lambda x: x % 2 == 0, nums))\nprint(even)  # Output: [2, 4]\n```\n\n### ✅ Another Example:\n```python\ndef is_positive(n):\n    return n \u003e 0\n\nnums = [-3, 1, 0, 5, -1]\npositive_nums = list(filter(is_positive, nums))\nprint(positive_nums)  # Output: [1, 5]\n```\n\n---\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhad-here%2Fstudent_performance_analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarhad-here%2Fstudent_performance_analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhad-here%2Fstudent_performance_analyzer/lists"}