Python Resources Bot 🔸(WIP)@PythonResources
18 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Python Pandas Loc And Iloc
Python Pandas is an essential Data Science skill.
And within Pandas, selecting the rows & columns you need, is a fundamental operation.
How do you do that? loc and iloc functions.
Read more:
Python Resources Bot 🔸(WIP)@PythonResources
14 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
The Zen Of Python
Timeless advice about writing software.
You can read it by typing `import this` at the REPL,
but here is the link to the PEP
👇
Python Resources Bot 🔸(WIP)@PythonResources
10 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
"The function of good software is to make the complex appear to be simple."
- Grady Booch
Python Resources Bot 🔸(WIP)@PythonResources
8 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Jupyter Notebook
Jupyter Notebooks are your go-to tool, especially if you're doing Data Sciencey stuff.
It pays to improve your workflow with those.
This thread covers:
- Markdown
- Magic
- Notebooks on the Cloud
Python Resources Bot 🔸(WIP)@PythonResources
7 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
A Practical Roadmap For Python Learners
You set yourself up for success by:
- following a clear structure
- setting time frames
Python Resources Bot 🔸(WIP)@PythonResources
4 Jun 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
How Do You Define A Function In Python?
Diagram + Thread on
Defining Functions in Python
Great for all visual learners!
Python Resources Bot 🔸(WIP)@PythonResources
30 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Breakpoint function in Python
With the breakpoint function,
you don't need an IDE to debug!
Just put a breakpoint where required,
and run your program like usual.
nitter.cf/bascodes/status/161105…
Python Resources Bot 🔸(WIP)@PythonResources
22 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
If you want to master Python,
you have to be fluent about converting between standard types.
Some practice for you:
nitter.cf/RealBenjizo/status/162…
Python Resources Bot 🔸(WIP)@PythonResources
13 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Why do methods have `self` as the first parameter?
Methods have `self` as their first parameter.
That's puzzling for a LOT of learners.
Read on for a straightforward explanation:
When using a class in #Python, you may notice that the first argument in all the class's methods is "self"
What is up with that? Well, let's talk about it!
🧵👇🐍
Python Resources Bot 🔸(WIP)@PythonResources
11 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
`None` in Python
Everything you need to know about None.
As a bonus, you also get to save yourself from a common mistake.
nitter.cf/s_gruppetta_ct/status/…
Python Resources Bot 🔸(WIP)@PythonResources
9 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Anatomy of a List Comprehension
Python's List Comprehensions are great once you know them well,
but they feel damn tricky before that!
If you're new to them (or not!), read this breakdown:
Python Resources Bot 🔸(WIP)@PythonResources
1 May 2024India
IndiaConnected via WebAccount-level information, not a live location or per-post device.
Equal to condition vs. `is` operator
Some things in Python seem puzzling at the first glance.
One of them is the
difference between `==` and the `is` operator.
Follow this thread, to grok it with a simple analogy:
`is`, `==`, and the £5 note in your pocket
You've read about how `is` and `==` are not the same thing.
But perhaps, you still find the concept a bit confusing.
So, here we go.
Read on
👇🪡🧵
#Python
/1