{"id":13934771,"url":"https://github.com/gpetepg/python_tips","last_synced_at":"2025-07-19T19:31:37.501Z","repository":{"id":111552226,"uuid":"149827441","full_name":"gpetepg/python_tips","owner":"gpetepg","description":"Some Python tips for beginner to intermediate users. Also used as a personal cheat sheet. Featured here https://bit.ly/2ZaV4Pl","archived":false,"fork":false,"pushed_at":"2022-08-24T03:19:30.000Z","size":245,"stargazers_count":156,"open_issues_count":0,"forks_count":42,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-27T02:35:22.656Z","etag":null,"topics":["beginner","intermediate","jupyter-notebook","python","python3","python36","python38","tips-and-tricks"],"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/gpetepg.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-09-21T23:06:49.000Z","updated_at":"2024-10-23T23:39:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8843b5b-5142-4d44-8bd3-73acb7aa70fd","html_url":"https://github.com/gpetepg/python_tips","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gpetepg/python_tips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpetepg%2Fpython_tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpetepg%2Fpython_tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpetepg%2Fpython_tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpetepg%2Fpython_tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpetepg","download_url":"https://codeload.github.com/gpetepg/python_tips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpetepg%2Fpython_tips/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265998685,"owners_count":23862156,"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":["beginner","intermediate","jupyter-notebook","python","python3","python36","python38","tips-and-tricks"],"created_at":"2024-08-07T23:01:13.526Z","updated_at":"2025-07-19T19:31:37.490Z","avatar_url":"https://github.com/gpetepg.png","language":"Jupyter Notebook","readme":"===========\nPython Tips\n===========\n\nThese tips are for beginner to intermediate Pythonistas who have a bit of experience with the language. I focused on general Python tips that I think are good to know.\n\nPlease clone or fork, the notebooks are meant to be interacted with. The TOC do not work on GitHub.\n---------------------------------------------------------------------------------------------------\n\nIf the page notebooks won't load on GitHub view them here:\n - `Python Tips \u003chttps://nbviewer.jupyter.org/github/gpetepg/python_tips/blob/master/python_tips.ipynb/\u003e`_.\n - `Built-In-Libraries \u003chttps://nbviewer.jupyter.org/github/gpetepg/python_tips/blob/master/built_in_library_tips.ipynb/\u003e`_.\n\nNote that these were written in Python 3 (3.8.X).\n\nThese files are .ipynb. It is a notebook document used by Jupyter Notebook, an interactive computational environment designed to help scientists work with the Python language (as well as many others e.g. R, Julia, Ruby, JavaScript).\n\nI suggest downloading `Anaconda \u003chttps://www.anaconda.com/\u003e`_.\nAnaconda is a free and open source distribution of the Python and R programming languages that aims to simplify package management and deployment. Jupyter Notebook is included in Anaconda.\n\nI've included an inline `python tutor \u003chttp://www.pythontutor.com/\u003e`_. Just uncomment it and run the cell to use.\n\nPlease feel free to contribute, critique and comment.\n\nGeneral Tips:\n----------------------------------------\nTopics\n - Additional Operators\n - Global\n - Enumerate\n - Comprehension; List, Set, Dict\n \nFunctions and Classes Topics:\n----------------------------------------\nFunctions\n - Generators\n - Args and Kwargs\n - Lambda Functions\n - Mutable Parameters\n - Decorators\n - Recursion\nClasses\n - Class Inheritance\n - \"Private Methods\"\n - Str and Repr\n - Static and Class Methods\n - Method Chaining\n - Property Decorators; Getters, Setters, Deleters\n\nBuilt-In Functions and Libraries Topics:\n----------------------------------------\nFunctions\n - Map\n - Filter\n - Zip\n - Print Formatting\n - Multiline comments\n - Formatting\n - Str and Repr\nLibraries\n - Itertools\n - Infinite Itorators\n - Iterators Terminating On The Shortest Input Sequence\n - Combinatoric Iterators\n - Collections\n - Functools\n - Datetime\n - OS\n \nRandom Tips:\n----------------------------------------\n- Random assortment of tips that did not fit the other notebooks\n","funding_links":[],"categories":["Jupyter Notebook","Interesting Non EO parts Python"],"sub_categories":["GEDI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpetepg%2Fpython_tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpetepg%2Fpython_tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpetepg%2Fpython_tips/lists"}