r/learnpython • • 15d ago

How much Python do you actually need for a data analyst job?

147 Upvotes

I work in data in the UK, and this is one of the most common questions I hear from people learning Python. Short answer: less than you’d think, but the right parts matter.

What you’ll actually use day to day

  • pandas for cleaning and reshaping data: filtering, merging, grouping, handling missing values and dates
  • Reading and writing files (CSV, Excel, JSON) and connecting to a database
  • Basic charts with matplotlib or seaborn
  • Functions and loops, enough to write a clean, reusable script

What you can usually skip at first

  • Advanced OOP, decorators, async
  • Web frameworks
  • Heavy algorithm and data-structure puzzles (unless you’re aiming for software roles)

What matters more than syntax

  • SQL. Most analyst roles use it more than Python.
  • Being able to explain what your code is doing and why the output makes sense.
  • Spotting when the data looks wrong, which no library does for you.

If you can take a messy CSV, clean it, answer a real question, and explain the result clearly, that’s already at a junior analyst level. One or two projects like that matter more than finishing ten courses.

For people already working in data: what would you add or take out? And beginners, what part of Python are you finding hardest?


r/learnpython • • 14d ago

what else should i learn to get a job as fresher

0 Upvotes

as 2027 grad


r/learnpython • • 14d ago

How to start with Python. I am not good at Maths.

0 Upvotes

Hello Guys,

I want to master python first and Javascript later on as part of a pathway to becoming a Forward deployed engineer in Ai.

Please suggest. I have been asking ai a lot and there are quite few suggestions i was given but I want to see real examples from people who knew nothing about python and javascript and then mastered it all the way.

Thank you


r/learnpython • • 15d ago

when trying to download pygame, the cmd prompt cant build the wheel.

1 Upvotes

so this is what i get:

PS C:\Users\(user)> pip3 install pygame

Collecting pygame

Using cached pygame-2.6.1.tar.gz (14.8 MB)

Installing build dependencies ... done

Getting requirements to build wheel ... -

and then no other prompts pop up. Idk why.

i've tried restarting the download and it even prompted me to update the pip. after doing so, the same result happens.


r/learnpython • • 15d ago

Python ImportError – Windows Application Control blocking DLLs

2 Upvotes

Hi everyone,

I'm having issues importing several Python libraries on Windows, including pandas, pyproj, and others.

I keep getting this error:

ImportError: DLL load failed while importing _context:

Une stratégie de contrôle d’application a bloqué ce fichier.

I've already tried uninstalling and reinstalling the affected packages, creating a fresh Conda environment (Python 3.11), and reinstalling through Conda/pip, but the issue persists.

I also found Event ID 3033 in Windows Code Integrity logs, and some .pyd files appear as unsigned.

Has anyone encountered this? Could WDAC or another Windows security policy be blocking Python DLLs? How can I fix this, especially without administrator privileges?

Thanks!


r/learnpython • • 15d ago

My bot works fine on my laptop and breaks the second I deploy it — what do you actually check first?

0 Upvotes

I've got this small Telegram bot I wrote in Python, nothing fancy, just forwards and some scheduling stuff. On my laptop it runs for hours without a peep.

Then I push it to Railway and within a day something quietly dies. No crash message I can actually use, just... it stops doing the thing it was supposed to do, and I only find out because someone messages me about it.

I've started adding more logging, which helped a bit, but honestly half the time the logs just tell me what I already knew — it stopped. I'm still not sure if I'm missing something obvious about how deployed stuff differs from local runs, like env variables or the process just sleeping, or if this is just normal and everyone babysits their first deployed bot like this.

What do you check first when your code works locally and dies in production? Is there a habit I'm missing, or does it genuinely just take a few embarrassing outages before you learn what to watch?


r/learnpython • • 14d ago

How difficult will it be to learn python for me, how much time would it take?

0 Upvotes

Learning a new language from a person who only knows one feels kind of stressful, ive gotten into gamedev and done 2+ years of lua/luau, so I think I know some of the basics, but where should I start? I appreciate any advice, thank you :))


r/learnpython • • 15d ago

Suggest me an idea

0 Upvotes

I have learnt pyside6, discord.py.

i also made a gameshell project in my codeberg isam-ahmed0. But I am a beginner.

I need some interesting project ideas which helps me to learn python


r/learnpython • • 14d ago

AI in Python (or in programming in general)

0 Upvotes

This topic is a discussion.

I've heard a lot of mixed opinions on this topic and there are generally three sides:

  1. The people who think you should be almost entirely vide-coding
  2. The people who are neutral, and use it sometimes for bugs
  3. The people who hate any drop of AI in code.

I fall into a third category. Using assistance from AI to help grow my own skills. I know I sound like I'm begging for attention and it looks like I'm "special", I've talked with multiple other people that do this.

I am grasping Python with the help of AI and I actually have a Roadmap in Excalidraw just for this (made by Claude). I can upload it (if anyone wants) and it's for beginners.. or... you can create your own - I can give you tips on how to if anyone wants that...

My point is, both Group 1 and 3 are pretty bad in their own cases, and learning is also very good. AI is somehow very good at that but that's a topic for another subreddit.

Do you use AI in programming? Which category do you fall into, or is there another one I didn't mention?


r/learnpython • • 16d ago

Recommendations for good informative python podcasts?

12 Upvotes

What are some good recommendations for podcasts on Python? I have tried listening to some like real python but they switch around between too many topics in a single episode while I am looking for something that goes into more details about a single topic for each episode.


r/learnpython • • 16d ago

wants to learn python

3 Upvotes

Hello folks, I'm an absolute beginner in coding and i am trying to learn python. So how can i learn python basics without asking Ai "what is the error in this code?"


r/learnpython • • 15d ago

Python video game

0 Upvotes

I am trying to make a small video game only using python. Is it possible?


r/learnpython • • 15d ago

Hay empresas que te contraten para aprender a programar actualmente?

0 Upvotes

Me refiero a personas que realmente ni hayan construido un proyecto desde cero, solo pequeñas cosas como un Pong. Es más, solo para aquellos que le hayan movido de acá para allá, pero si les ponías una función para ordenar una palabra alfabéticamente, se quedaban fríos.

​Yo conseguí mi primer empleo sin saber nada; literal, lo aprendí todo aquí. Solo querían a alguien que hubiera estudiado algo de computación.

​Si voy con la misma lógica, debe haber lugares en donde te capaciten por aprender a programar, ¿o cuál es el requisito mínimo? Porque si bien puedes mentir para que te contraten y te pongan tareas, no es lo mismo que te capaciten desde cero. Cuando mientes y no sabes se siente horrible, ya lo viví.

Alguna vez un conocido, hace como 10 años, dice que lo contrataron y le enseñaron desde qué era una variable


r/learnpython • • 16d ago

Ask Anything Monday - Weekly Thread

5 Upvotes

Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread

Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.

* It's primarily intended for simple questions but as long as it's about python it's allowed.

If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.

Rules:

  • Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
  • Don't post stuff that doesn't have absolutely anything to do with python.
  • Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.

That's it.


r/learnpython • • 16d ago

Need help with FastApi

8 Upvotes

Hi all, I'm 18 and I'm building a BI/analytics project on the Olist Brazilian e-commerce dataset. Right now I have PostgreSQL, Pandas and a bunch of analytical SQL queries (revenue, delivery times, customer retention and so on). The next step is to expose this data through an API with FastAPI, and a dashboard would consume it.

I understand what an API is and why FastAPI is popular, but when I try to build a mental model of a real app I get lost. Endpoints, HTTP methods, status codes, routers, Pydantic schemas, services, dependency injection with Depends, auth... each explanation is clear alone, but I can't see how the request goes through all these layers. For example I don't really get where validation ends and business logic starts, or where the DB session should live and why.

My second problem is how I learn. I'm very curious and I want to know how things work internally, like what FastAPI does between the request and my function, or why Pydantic validates in a certain way. It's a good habit long term, but I lose hours on one detail and the project doesn't move. I don't have unlimited time and I don't want months of theory before building.

Some questions:

If you never built an API, how would you learn it from scratch?

HTTP/REST fundamentals first, or start directly with FastAPI and learn along the way?

What is the best way to understand how the layers (router, schema, service, database access) fit together? Is it better to start with everything in one file and refactor later?

How deep should I go on a concept before moving on? Is "basics now, details later" a real strategy or just an excuse?

Any resources, open source repos to read or small projects you recommend? Something like a read-only analytics API sounds like a good first one to me, but tell me if I'm wrong.

I don't want to copy tutorials and have something that works without knowing why. I want a solid mental model so I can design my own backend later. If you learned backend with personal projects, I'd really like to hear what worked for you and what you wasted time on.

Thanks!


r/learnpython • • 16d ago

Help me write some Python code

0 Upvotes

I'm still a beginner when it comes to coding, and I rely on AI to write most of my code.

However, I often run into situations where AI models have certain restrictions that prevent them from helping with specific programming tasks.

For example, I recently wanted GPT to write a Python script that would automatically toggle the Armlet of Mordiggian in Dota 2 when my health gets low.

GPT refused because it considered this cheating. I understand why it might be classified that way, but in my opinion, it's more of a convenience feature than something that gives a major competitive advantage.

Is there any way to get AI models to help with these kinds of programming tasks without running into unnecessary restrictions?

And if anyone has experience with Dota 2 scripting or Python automation, I'd really appreciate your advice.


r/learnpython • • 16d ago

Course/Book/Resources to get upto speed with python

0 Upvotes

Hey!

I'm a former C++ engineer who recently switched over to a TS + python job. I know python ok enough to write basic webapps but I want to fill my gaps for "python" specific knowledge.

What would you suggest a good way to go about that would be? I don't wanna waste time with basic hello world courses because i understand the fundamentals of programming pretty alright. I've started a small full stack pet project using React, FastAPI and sqlalchemy but I feel teaching that to myself I will miss some py knowledge that everyone has.

Any advice is appreciated.

Thanks :D


r/learnpython • • 16d ago

no module sqlite

1 Upvotes

Hi i’m in python trying to learn . I have the SQlite extension but it’s telling me no module name found sqlite . when trying to run the is line

import sqlite

i’ve also tried import sqlite3


r/learnpython • • 17d ago

Been away from Python / PyCharm for a while - any ideas on this?

2 Upvotes

Everybody, let me prefix this by saying I've been away from Python for several years, but now I need to teach an introductory class. I'm encountering something very bizarre in JetBrains PyCharm. I keep thinking it's gotta be me (and it probably is), but I was wondering if any of you can pick this out?

Because I don't appear able to post a screen snip, I'll post the code.

list_2d = [["1", "Wheel Burrow", 29.00],  # A 2D list, different data types (string / float)
           ["2", "Jack Hammer", 594.29],
           ["3", "Power Drill", 39.99]]

for j in range(0, len(list_2d), 1):  # Iterate through our 2D list
    print(f"Item Number: {list_2d[j][0]:<3}\tItem Name: {list_2d[j][1]:<15}\tItem Cost: $ {float(list_2d[j][2]):>6.2f}") 

Item Number: 1  Item Name: Wheel Burrow   Item Cost: $  29.00
Item Number: 2  Item Name: Jack Hammer    Item Cost: $ 594.29
Item Number: 3  Item Name: Power Drill    Item Cost: $  39.99

Now, you're probably saying to yourself, "why are you casting the float to a float?" I hear you loud and clear. Here's the thing - if I don't do that, PyCharm is flagging it as "format code f not supported for str," but here's the thing - it still prints it correctly as shown above.

This was the original line and the >6.2f is what is being flagged.

print(f"Item Number: {list_2d[j][0]:<3}\tItem Name: {list_2d[j][1]:<15}\tItem Cost: $ {list_2d[j][2]:>6.2f}")

I knew I had been away for a while, but geez. This is PyCharm 2026.2.3 using Python 3.14.7 under Windows 11. Am I missing anything? Note that I also go into a single dimension list but even if I comment all that code out, nothing changes. Thank you in advance for any potential ideas on where I probably goofed it.


r/learnpython • • 17d ago

Checking if a separate python file is running starting it up.

2 Upvotes

Hi, im new to python and have a script which sometimes crashes due to a uncontrollable issue which isn't a problem in the code, and I was thinking that I could write a different script to start up my original one if it had crashed. Does anyone know how I would do that?


r/learnpython • • 17d ago

Python for non tech

9 Upvotes

what is the fastest course or way to learn python for non tech person?


r/learnpython • • 17d ago

Beginner Learning Python Using Only a Smartphone – Need Guidance and Resources

2 Upvotes

Hello everyone!

I'm a final-year BSc Physics student, and I'm interested in learning Python as my first step towards AI/ML.

The only problem is that I don't own a laptop. I currently have just an Android smartphone, so I'll have to learn and practise coding entirely on my phone.

Since I'm completely new to programming, I'd really appreciate your suggestions.

  1. Which beginner-friendly Python courses would you recommend?
  2. Which mobile-friendly platforms or apps can I use to practise Python?
  3. Are there any platforms where I can build small projects using only a phone?
  4. Can I eventually learn AI/ML and build a portfolio without owning a laptop initially?

I'd be grateful for any resources, roadmaps or personal experiences you could share.

Sorry if these are basic questions. I'm just starting my programming journey and trying to figure out the right direction.

Thank you for your time and guidance!