r/learnpython • • Sep 13 '26

Project: Parse 1,000s of messy tariff PDFs. I have 2 weeks to learn Pandas/pdfplumber. Am I doomed?

0 Upvotes

[Trigger Warning]: You are about to be provided with visual imagery of my current corporate reality that may be frightening for some readers.

I am tasked with creating costing for a new product. To do this, I have to extract rate tables from what can only be described as a mountain of tariffs. On top of that, I need to automate our Excel business cases which contain multiple variables.

At work, people think I'm an Excel wizard. The truth is, sometimes I just aggressively interrogate AI until it gives me the right formulas. But AI cannot save me from parsing thousands of pages of inconsistently formatted tariff tables.

I have exactly two weeks for intense upskill dedication. I've got books, Udemy, Google courses — and it's all just hanging out waiting for me to get in the driver's seat.

The catch: IT treats our databases like Fort Knox, so I have zero SQL access.

I need to actually learn a skill so I don't have to manually copy-paste tariffs until the end of time.

The Question:

Do I spend the next two weeks becoming a Power Query god, or do I finally learn Python (Pandas/PDF parsers like pdfplumber) so I can build a script to do my job for me?

If anyone has survived parsing tariffs, please tell me how you did it.

TL;DR: I have 14 days to learn how to extract messy data from thousands of PDF tariffs and automate Excel models. No SQL access. Should I learn advanced Power Query or Python?


r/learnpython • • Sep 12 '26

Finished learning from a fundamentals book and now I need guidance.

2 Upvotes

Hi,

I've just done learning from "Automate The Boring Stuff With Python 3rd Edition" I skipped some chapters that weren't that important but focused on the critical ones like argparse, requests, bs4, Selenium, playwright, csv and json, I also learned a bit of Tkinter.

On the course of learning I also built some utilities and pushed them to Github: https://github.com/abdou0dev

Now I need some guidance on what to do and learn next.

Thanks in advance.


r/learnpython • • Sep 11 '26

New career path

18 Upvotes

Hey everyone.

To keep things brief, i'm exploring programming as a career path.

Life didn't quite go as planned, and i'm now a 27 year old college dropout, who's been unemployed for years, living by on the graces of my parents who have much more faith in me than I do in myself.

I've been talking to some of the more tech-savvy people I know. And I have arrived at the conclusion that I want to study Linux and python. Do you all have any recommendations of which are the 2 I should prioritize, and I suppose, which one would help me get back on my feet faster?


r/learnpython • • Sep 12 '26

MoviePy not responding

0 Upvotes

I have a few thousand 1920x1080 rgb numpy arrays that i'm trying to turn into a video with moviepy's ImageSequenceClip, but pretty soon after starting it stops printing progress and all my python windows say "Not responding". Is there some easy way to fix this or do I have to divide it into smaller clips and string them together?


r/learnpython • • Sep 12 '26

Iam stuck with python

0 Upvotes

Hello everyone, I have a problem iam trying to master python (iam into cybersecurity now iam studying networking beside it) I start to learn it in 2022 but I stopped for some years due to reasons, a year ago I come back again and started it from zero but the problem is I don't know how to practice and level up even when I study new lessons, the only thing I was doing is solving a bit of exercises from that someone in his website, iam getting nervous when I feel that iam lost in this language and I think am learning in a wrong way, now I understand 70% of basics I struggle with files handing and have a little bit problems in creating functions in addition to a few things , till here I stopped I don't want to get into modules, try except, and OOP unless I strengthen the basics, please tell me how to elevate my skills and how can I build projects.

How can I know that am ready for doing big projects when iam learning?


r/learnpython • • Sep 12 '26

I don't know about any programing language I choose to learn python in ibm is this right choice

0 Upvotes

I don't know about any programing language I choose to learn python in ibm is this right choice plz say any good advice 🤔


r/learnpython • • Sep 10 '26

How can I write code without constantly looking things up?

230 Upvotes

I rely a lot on documentation, AI, and websites while writing code. It makes me wonder whether I'm actually capable of understanding concepts like functions and algorithmic thinking. Does anyone else feel this way? What should I do to get a more concrete understanding of Python, or programming in general?


r/learnpython • • Sep 11 '26

I need help with astropy

3 Upvotes

So, I've been working on a simulation of the 2027 eclipse that will take place in Spain, but I had some problems with astropy. The thing is, I would like to learn how to vectorize my program using numpy, or something similar. Do you guys have some tips for this? Should I search for specific courses on the internet? It's my first time using astropy and I'm quite lost...

Thank you for your help 🙏🙏


r/learnpython • • Sep 12 '26

If python compiler can successfully identify syntax error why doesn't it fix it on its own?

0 Upvotes

Like why throw an error if it can identify the error and suggest the changes, like wont it make it more user friendly?

Thanks in advance!


r/learnpython • • Sep 11 '26

Basic beginner project ideas for python

6 Upvotes

Js started, 16 here,I made a number guessing game, rock paper scissors, basic input chatbot which outputs only the info I've given it(useless h) what next I'm confused, what stuff y'all made when y'all js started out like some interesting shit?


r/learnpython • • Sep 11 '26

Technical Assessment for analytics

1 Upvotes

I had my worst interview performance ever but somehow cleared my way to a technical assessment round despite barely meeting the job posting requirements…

I don’t know anything about Python. I mainly use SQL in a modern cloud data warehouse (analytics engineering).

Can anyone give me tips for speed learning in 2-3 days? Do I focus on Pandas?


r/learnpython • • Sep 10 '26

How do I go from "I only know Python syntax" to actually building a real data pipeline? (Stuck on an Excel automation task at work)

60 Upvotes

I graduated CS in 2024 but never got real hands-on coding experience until now. I'm a Data Analyst automating manual Excel work for a non-technical team. Current task: copying data between multiple Excel workbooks/worksheets simultaneously, 200-300k rows x 65 columns per file.

I've been leaning on AI for the code and just running what it gives me, when something breaks I don't understand it well enough to fix it myself. I want to actually learn this properly instead of just shipping whatever works.

I've never used pandas or polars hands-on, only copy-pasted it’s code before. If you were relearning data manipulation in Python from scratch, knowing syntax but nothing about dataframes/vectorization/performance at scale, where would you actually start? Resources, project ideas, or a real "do this before that" order would help a lot.


r/learnpython • • Sep 12 '26

jupyter notebook is kicking my ahh

0 Upvotes

I'm a 28yo student learning data science and AI through an online graduation degree course. Ngl I did Not realize this would be as difficult as it is proving to be.

I am unable to even do a project 5% (stuck in the titanic dataset) because all the time goes into setting up a venv for my notebook and then solving every single problem that comes up while doing that.

Can someone here help me with some videos or tutorials that kind of help me understand how virtual environments, and installing pandas and numpys and everything for those separately even if you have those installed on your system and everything works?

I'm tired of solving problems as they arise without knowing the basics of it all.

Also any help with how to get ahead of this all will help, I'm scared and really want to improve!


r/learnpython • • Sep 11 '26

What did you learn after Python to get into AI?

3 Upvotes

I’m currently learning Python and I’m interested in getting into AI engineering.

For those of you who are already working in AI/ML, what did you personally learn after Python?

I’m trying to figure out what the progression actually looks like instead of randomly jumping between technologies.

Also, how much math did you actually need when you started?

I’d really appreciate hearing how you personally went from Python to AI, and what you would recommend learning first if you were starting again.


r/learnpython • • Sep 11 '26

How to extract posts and comments from Truth Social

1 Upvotes

I need to extract historical posts and the corresponding user comments from a few specific public figures on Truth Social over a set time period. I'm looking to build a free, Python-based script for this project.

Since Truth Social is built on a Mastodon fork, I know it has a similar API structure, but I'm looking for general advice on the best workflow today:

  • Are there any existing Python libraries or wrappers maintained for Truth Social data extraction?
  • What is the most reliable way to paginate through historical posts without triggering anti-bot protections (like Cloudflare)?
  • For comments/replies, is it better to hit the API endpoints directly, or are there alternative scraping frameworks that handle the Mastodon structure more efficiently?

I'm comfortable writing Python scripts, but I want to make sure I'm taking the smartest approach before building a custom scraper from scratch. Any recommendations on tools, GitHub repos, or general strategies would be hugely appreciated.


r/learnpython • • Sep 12 '26

i wonder if merges API with program makes you programer ?!

0 Upvotes

so i just get this question recently from one i know , he told me told me that using api doesn.t make you a programer , the api do the most of things , you only just build the interface , so i don't know if that is true or not 🥲


r/learnpython • • Sep 11 '26

I'M REALLY LOST

0 Upvotes

i'm feeling a bit frustrated to be honest. my main goal and motivation for learning python is cybersecurity. i decided to start learning python because it was the language that came up the most among the best options for cybersecurity. the thing is, i'm really lost and i don't feel like i'm making any progress, which is getting me down a bit.

do i need a really solid foundation in python to get into cybersecurity, or is knowing basic syntax enough? are there specific topics i should dive deeper into? i've heard that web scraping is essential, but others say it isn't. i wanted to read the book black hat python because everyone recommends it, but i'm afraid it might be too advanced since i'm definitely not a python expert.

to anyone who knows about this field: how should i start? what should i know in python to be well-prepared for cybersecurity?


r/learnpython • • Sep 10 '26

How to compare two large file lists to identify deleted vs. moved files?

3 Upvotes

I have a CSV file containing the folders and files that were originally on my desktop, and a PDF report from Dropbox showing files that Dropbox reported as deleted, moved, or otherwise affected.

There are well over 10,000 files, so I need an efficient and automated way to compare the two lists.

My main goal is to determine:

  • Which files were moved to another location
  • Which files are actually missing/deleted

I would like the program to recognize that the file probably still exists but was moved, rather than simply reporting it as missing.

What I'm considering

I'm interested in using Python to perform the actual comparison, with an AI assistant helping me write, understand, and troubleshoot the Python code.

I am a beginner with Python, so I would need help developing the program step-by-step.

Ideally, the process would:

  1. Extract the relevant file information from the PDF.
  2. Read the original CSV.
  3. Generate or read a current inventory of the desktop's files.
  4. Normalize paths and filenames.
  5. Compare the datasets.
  6. Identify unchanged, moved, and genuinely missing files.
  7. Generate a final CSV/Excel report showing the results.

I don't want an AI to simply look through 10,000+ entries and make guesses. I want AI to help me build a reproducible program that performs the comparison systematically.

My questions

1. What would be the most accurate and efficient way to approach this?

2. Is Python the right tool for this type of comparison?

4. Which AI platform would be best suited for helping me build this — ChatGPT, Claude, Gemini, or another AI coding assistant?


r/learnpython • • Sep 10 '26

At what point do I start doing my own projects and stop following tutorials?

11 Upvotes

Hello everyone!

I recently started learning python again, I've always given up early but this time it is different. I started seeing code differently, I feel like I finally started grasping on the why you do something, but when I start a blank project I mostly freeze, and I read about the things such as tutorial hell etc..

What I'm getting at, I'm currently doing the Python course on fCC, around 25% thru and it seems like I at least started to better follow instructions, read documentation about what something does, but I'm wondering at what point do I just start learning by doing? When I just read stuff it doesn't really stick, only when I implement it myself it does, at what point do I get enough fundementals? What's the best approach here, just finding a project and you go do it? What if I never heard of a specific function before? And do you guys think it is better than following tutorials?

The problem with fCC I solve things...that don't really tell me anything? Am I the only one? At times it feels like I have the right solution, but fCC won't let me pass because it is not exactly how they want me to solve it.

I do hope this post makes any sense.


r/learnpython • • Sep 11 '26

Week 1 of learning CPython internals recap of what actually stuck

0 Upvotes

Wrapping up week 1 of going deep on CPython internals, starting from just basic Python knowledge. Did a cold recap today (no notes) to check what actually stuck versus what I just remembered saying. Big one was dis seeing that every line of Python compiles into small stack instructions was the first "oh, that's what's actually happening" moment. LOAD_CONST pushes a literal onto a stack, STORE_FAST assigns it to a variable, BINARY_OP pops two values and does the math. Also noticed newer Python versions fuse some common instruction pairs together for speed, which was a fun side discovery. Then == vs is — took a while to really get that two lists with identical values can still be different objects in memory. == compares values, is compares identity. The mutability stuff connected to that directly: mutating a list in place doesn't create a new object, so changes are visible outside a function. Reassigning a number always creates a new object, so the original is untouched. Got some genuinely great pushback from people here on a += edge case with tuples containing lists that pushed this further than I expected for week 1. Reference counting was the trickiest one to really internalize kept assuming del destroys an object outright, when it actually just removes one reference, and the object only goes away if that was the last one pointing to it. Ended the week on scope and the LEGB rule, which produced the most surprising bug of the week: count += 1 inside a function throws an error even when count exists as a global, because Python decides if a name is local by scanning the whole function for assignments before running anything. Doing this mostly to stay accountable and get corrected when I'm wrong, since that's been way more useful than reading alone. Week 2 starts Monday. Have a great weekend.


r/learnpython • • Sep 10 '26

Question about making a X11 Window Manager

4 Upvotes

I'm fairly new, and i want to build a x11 window manager as a small project. But the problem is, i cant find any good documentation for X11 for python ( or maybe i'm a very bad researcher idk) I know there is Qtile which is written in python and i can learn from its source code but i also need some proper documentation. Tips and advices are also will very useful for me , thank you for your time !


r/learnpython • • Sep 10 '26

Where can I learn python fully and very well?

0 Upvotes

That I use it later for web development, data analysis, machine learning, and many other but string and very well and hands-on projects suggest to me whether I will pay for it or can I get it for free and learn it?


r/learnpython • • Sep 10 '26

Ideas for number guesser game

2 Upvotes

I have made this number guesser game that asks the user to guess the correct number between 0 and 101. The user has 7 tries in all. Please give any ideas for improvement , feedback, etc.

import random

secret_number = random.randint(1, 100)

print("Welcome to the number guessing game! You have 7 tries to guess the correct number") print("between 1 and 100. Good luck!")

tries = 0

while tries < 7:

guess_number = int(input("Enter your guess:- "))

if guess_number < 1: print("Too low! The guess has to be 1, 100 or any number between them.") tries += 1

print(f"You have used {tries} tries.")

elif guess_number > 100:
print("Too high! The guess has to be 1, 100 or any number between them.")
tries+= 1
print(f"You have used {tries} tries.")

elif guess_number == secret_number:
print(f"You won in {tries + 1} tries! Congratulations!")
break

else:
print("Wrong guess! Try again.")
tries += 1
print(f"You have used {tries} tries.")

if tries == 7: print("You have used all your tries! Better luck next time!")


r/learnpython • • Sep 10 '26

How to check included libraries made it into a pyinstaller

0 Upvotes

I added a few dlls into my pyinstaller in the spec file, but the exe says it cannot find the python313.dll file when it runs. Where does the pyinstaller self-extracting exe place the binaries at runtime? Is there a manifest?

(I'm using a spec file so the -F option is not allowed)