r/pythontips • u/Codex-learn • Oct 07 '20
r/pythontips • u/AjeyKoushik • Apr 21 '20
Algorithms 500 Free Computer Science Courses from the World’s Top CS Universities
r/pythontips • u/Discchord • Aug 02 '19
Introduction to Python (A new series with a fun take on programming!)
I've been programming since I was 6, but I didn't fall in love with programming until I meet Python. I've been using Python for 5 years now, and I've made some pretty big projects in it.
Now I want to share my love of Python and programming, using the same methods I use for teaching music production and synthesis! With an emphasis on fun! Like really fun, not like fake fun of educational games. Programming can and should be fun.
The first 3 episodes are out now, and I've got a dedicated site where you can keep track of videos in the series and check out my other projects.
If you've already got any amount of Python experience you should skip to the last video in this list. The first is a basic introduction to the series and a motivational speech for anyone that thinks they can't learn. The second is an introduction to a bare minimum of programming concepts. The third is more representative of how the rest of the series will go.
Episode 0: Anyone Can Program - https://youtu.be/k9nOsOrxL0M
Episode 1: Introduction to Python - https://youtu.be/tVf_feV2ZmU
Episode 2: Automate the Criminal Stuff - https://youtu.be/ZxCZPGpqcL4
r/pythontips • u/Potential_Industry72 • Oct 15 '23
Data_Science Here's a helpful package I made called PivotPal
A bit of background: I've been diving into Machine Learning during my studies here in New Zealand. Just six weeks in, and I've already noticed how much time we spend on data cleaning and validation. This hit hard while I was cleaning the classic Titanic Machine Learning challenge.Well, I got tired of repeatedly typing out df.isna().sum()and endlessly copying & pasting chunks of code.
So, I thought, why not create a package that not only streamlines these tasks but also presents data in a more visually appealing manner for notebooks?
It massively sped up the analysis to clean data for ML models
Here's the result:
EDIT (ADDED TIPS):
If you want to use the tool right away, here are the steps and some tips:
Install pivotpal:
!pip install pivotpalImport pivotpal:
import pivotpal as ppUse pivotpal instantly:
Column Distribution: pp.distribution(your_dataset, 'column_name')
r/pythontips • u/GrouchyAd4055 • Jul 17 '22
Python3_Specific I would like to learn useful python tricks…
guys, Share with us the most useful Python tricks you know😊
r/pythontips • u/lucytalksdata • Jan 09 '22
Data_Science 5 Useful Pandas Methods You May Not Know Existed (Part 2)
r/pythontips • u/geekyhumans • Jan 28 '21
Standard_Lib I create a small list of Python Web Frameworks. I hope it's a resourceful post.
So I tried to include all the Python Frameworks which you can use to create a Website or API. I also tried to cover their features as well. Please do let me know if I missed any.
Link: https://geekyhumans.com/python-for-web-development/
Please let me know if I missed any. You can also check out how can you create an Asynchronous API using Flask: https://geekyhumans.com/create-asynchronous-api-in-python-and-flask/
r/pythontips • u/nilexshinde • Aug 05 '20
Data_Science Free Certification Course on Data Analysis with Python in partnership with freeCodeCamp
At Jovian.ml, we are excited to announce a FREE Certification course on Data Analysis with Python: Zero to Pandas in partnership with freeCodeCamp starting on Aug 15th at 8.30 AM PST/9:00 PM IST
The enrollment is OPEN now.
The link to register is in the comments below.
Livestream @ freeCodeCamp Youtube Channel
In English & Hindi
r/pythontips • u/nidhaloff • Jul 25 '20
Python3_Specific check this python library to translate between languages using different translators
I needed to translate a text using python. It was hard to find a simple way to do it. There are other libraries that can be used for this task, but somehow,most of them are buggy, not supported anymore or complex.
Therefore, I decided to build this simple tool, it is clean and easy to use and provide support for many languages. The cool thing here is that many famous translators are integrated in this tool. For instance, google translator, PONS, Linguee and mymemory.
I'm interested in your feedback and contributions. Feel free to contact me
r/pythontips • u/TechBeamers • Jun 15 '23
Python3_Specific Some quick and useful Python memory optimization tips
Here are some quick and unique Python memory optimization tips:
Use generator expressions or list comprehensions instead of creating temporary lists.
Utilize built-in functions like map(), filter(), and zip() for memory-efficient data processing.
Consider using sys.getsizeof() to measure the memory consumption of objects and optimize accordingly.
Take advantage of lazy evaluation using iterators or generators to avoid unnecessary memory allocation.
Avoid unnecessary copying of objects by using in-place operations or views.
Dispose of large objects or data structures when they are no longer needed using del statements.
Use efficient data structures like sets or dictionaries for membership or uniqueness checks.
Consider using memory-mapped files or streaming techniques for handling large files instead of loading them entirely into memory.
Optimize memory usage when working with recursive functions by using tail recursion or converting them into iterative solutions.
Profile your code using tools like memory_profiler to identify memory-intensive areas and optimize them.
By applying these memory optimization tips, you can reduce memory consumption, improve performance, and make your Python code more efficient.
r/pythontips • u/blackheartredeye • Jul 25 '21
Algorithms Cool, Fun & Easy Python Projects for Beginners (with Code)
Some Cool python projects for Python Beginners
https://pysnakeblog.blogspot.com/2021/07/cool-fun-easy-python-projects-for.html
r/pythontips • u/SebLeDuck • Dec 06 '23
Algorithms I made my own "Learn python" GPT
Hey guys,
I'm in the process of learning python, and I often feel frustrated when I encounter problems I can't solve. Initially, I invested a lot of time in research and felt a huge sense of achievement when I worked things out on my own. However, lately, I've found myself relying too much on ChatGPT for quick solutions. Realizing that this approach wasn't really helping me learn, I decided to create a variant of ChatGPT called PyGenius:
Long story short, the GPT won't tell you the answer to your code problem straight away. It will guide you, offering hints, or showing partial code examples. The goal is to help users think critically and develop their problem-solving skills! I would love if you guys tried it and gave me feedback!
https://chat.openai.com/g/g-PHf1WeydP-pygenius
r/pythontips • u/[deleted] • Jul 08 '22
Short_Video Friends and I have created 10s of byte-sized tips and tricks videos for all levels of Python expertise - feedback welcome 🐍
https://youtube.com/shorts/Obb5tN5iKC4?feature=share
We are “experts” at python (day jobs!) and wanted to share our brand new channel with the community. It’s just for fun so there’s no Ads or monetisation.
All videos are around 20-30 seconds long
r/pythontips • u/roidrage84 • Mar 27 '22
Algorithms Learning programming logic
Hello, I'm learning python now for a few months but I still have a problem with getting used to the logic. I mean the logic of programing and python in general. When I look into other python scripts on GitHub 99% of the time I think to myself "Wow I could have never thought of that myself". Most of my scripts are just a lot of if else statements. I really want a job as a dev and I really need to improve my way of thinking.
So my question is, are there any good books, courses or anything else to improve that skill. I'm happy about all tips.
r/pythontips • u/shawemuc • Dec 07 '21
Module Learn how to level up your Pandas skills
If you are a pandas user, this article might be interesting for you. Enjoy reading!
r/pythontips • u/Codex-learn • Oct 13 '20
Python3_Specific Crack ZIP File Password with Brute-Force using Python.
r/pythontips • u/_leznets • Mar 21 '20
Hey everyone, with people having more time at home to hone in their Python skills, we’re creating a playlist centered around technical interview prep.
This is our second one in the series covering the 5 things we think are most important to know about Python for a technical interview. Based on your interview experiences, do you think there’s anything we’re missing, or that we should cover in future videos as we develop this playlist into something more substantial? We really appreciate any feedback. Thank you so much to this sub! https://www.youtube.com/watch?v=Zee665ssm8Y&t=1s
r/pythontips • u/Clicketrie • Jun 23 '22
Standard_Lib Have you used the pyjokes library?
I'm personally entertained. My joke this morning was: "How many QAs does it take to change a lightbulb? They noticed that the room was dark. They don't fix problems, they find them."
r/pythontips • u/ViridianGuy • Dec 30 '21
Long_video Learn Python
Over the past month or two I have been creating a series for learning the basics of Python. In these videos I teach and show topics like: Variables, Imports, Inputs, and Functions. I am finally finished the series I would appreciate some feedback!
Link: https://www.youtube.com/playlist?list=PLS7AdCt9Awnuq6yYZV2nVhi6OF5z3-9Ro
r/pythontips • u/bhavaniravi • Oct 17 '21
Syntax Python Beginner Mistakes
As a Python trainer, I get to work with pynewbies across the spectrum. It doesn't matter whether they are from college or years into the industry when learning Python. The simplest language on the earth is not that intuitive. Things get even more challenging when they are well versed in a Typed-Object-Oriented-Language
I have compiled some of the common mistakes that beginners make.
r/pythontips • u/ajfoucault • Aug 18 '21
Module "Automate The Boring Stuff" after "Python Crash Course"? Or is there a better alternative?
As the title says, I've already read and gone over "Python Crash Course by Eric Matthes and as great of a book as it was, it only covers the beginner parts of the language. I'd like to delve deeper into it and I learn best with books and I was wondering which book would be the ideal step up. Is "Automate The Boring Stuff" by AL Sweigart a good step up in difficulty? Are new topics covered? Is there another book for the intermediate-level python programmer?
r/pythontips • u/electroica • Apr 27 '21
Python3_Specific Finally Switch case statement in python.
No more "where is switch case in python?"
In the python 3.10 release according to the accepted PEP634,635,636 Match-Case statement will be added which is similar to Switch-Case statements in other languages. Match case is structural pattern matching which will match 'cases' against the subject value 'match'.
https://blog.electroica.com/switch-case-is-match-case-python/
r/pythontips • u/MinerOfIdeas • Jun 03 '24
Standard_Lib What is the most important concept to excel in Python?
Because I want extend my skill in Python and I’d like to know what is the graal of knowledge on python.
r/pythontips • u/[deleted] • Dec 28 '21
Syntax Couple quick tips I just learned about
1.) Integer conversion to Binary: # (Int base is 10):
number = given_integer
integer_conversion = format(number, "08b")
print(integer_conversion)
2.) Binary conversion to integer: # (Binary base is 2):
number = given_binary_number
number = str(number)
binary_conversion = int(number, 2)
print(binary_conversion)