{"id":24117056,"url":"https://github.com/cai991108/python-programming-utils","last_synced_at":"2026-06-09T03:31:52.539Z","repository":{"id":270971161,"uuid":"912002286","full_name":"CAI991108/Python-Programming-Utils","owner":"CAI991108","description":"This repository contains the code and documentation for python utils.","archived":false,"fork":false,"pushed_at":"2025-01-04T12:40:50.000Z","size":13787,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T13:44:35.534Z","etag":null,"topics":["python-utilities","python-utility","python-utils"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/CAI991108.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}},"created_at":"2025-01-04T12:38:33.000Z","updated_at":"2025-01-04T12:40:54.000Z","dependencies_parsed_at":"2025-01-04T13:54:37.005Z","dependency_job_id":null,"html_url":"https://github.com/CAI991108/Python-Programming-Utils","commit_stats":null,"previous_names":["cai991108/python-programming-utils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAI991108%2FPython-Programming-Utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAI991108%2FPython-Programming-Utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAI991108%2FPython-Programming-Utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CAI991108%2FPython-Programming-Utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CAI991108","download_url":"https://codeload.github.com/CAI991108/Python-Programming-Utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241164469,"owners_count":19920580,"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":["python-utilities","python-utility","python-utils"],"created_at":"2025-01-11T07:38:11.791Z","updated_at":"2026-06-09T03:31:47.519Z","avatar_url":"https://github.com/CAI991108.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Programming Utils\n\nThis repository contains the code and documentation for python utils. Below is a brief overview of each project and the tasks involved.\n\n**pyutils_1.py** includes:\n1. **Jacobian Matrix Calculation**: Implement a function to calculate the Jacobian matrix for a given vector and function.\n2. **Emirp Numbers**: Write a program to find and display the first N emirp numbers.\n3. **List Operations**: Implement functions to check if a number is exclusively in one of two lists and to crack a four-digit password.\n4. **Recursion and Tree Structures**: Implement recursive functions and a binary search tree.\n5. **Data Loading and Wrangling**: Load and clean data from a TSV file, perform data analysis, and visualize results.\n6. **Stock Data Analysis**: Analyze stock data, calculate moving averages, and implement trading strategies.\n7. **KNN Classifier**: Implement a KNN classifier to predict test preparation course status based on reading and writing scores.\n\n**pyutils_2.py** includes:\n1. **Dictionary Generation**: Generate a dictionary of factorials for numbers from 1 to n.\n2. **Iterator Operations**: Implement a function to find the first value in an iterator that appears k times in a row.\n3. **Recursive Functions**: Write recursive functions to check for adjacent 5s in a number and to find all ways k positive integers can sum to n.\n4. **List Intersection**: Implement a function to find the intersection of elements in a list of lists.\n5. **Sandwich Number Check**: Implement a function to check if a number contains a sandwich (a digit surrounded by two identical digits).\n6. **Mint and Coin Classes**: Implement classes to simulate a mint that creates coins with specific years and calculates their worth.\n7. **Portfolio Management**: Load stock data, calculate expected returns, build a covariance matrix, and design an optimal portfolio allocation.\n8. **Risk Analysis**: Calculate and visualize Value at Risk (VaR) and Conditional Value at Risk (CVaR) for a portfolio.\n9. **Linear Classification**: Use a linear classifier to predict the status of a test preparation course and evaluate its performance.\n10. **Regression Analysis**: Use linear regression to study the trend of reading scores with respect to math scores.\n11. **Time Series Analysis**: Perform exploratory data analysis on superstore sales data, including resampling and time shifting.\n12. **PyTorch Exercise**: Set up PyTorch CUDA and perform basic operations.\n\nTo run the code in this repository, you will need:\n\n- Python 3.x, Jupyter Notebook, Required Python libraries (e.g., NumPy, Pandas, Matplotlib, Scikit-learn, PyTorch)\n\nYou can install the required libraries using pip:\n\n```bash\npip install numpy pandas matplotlib scikit-learn torch torchvision\n```\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcai991108%2Fpython-programming-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcai991108%2Fpython-programming-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcai991108%2Fpython-programming-utils/lists"}