r/PythonLearnersHub • • Jan 31 '26

Hash_Map Data Structure Visualized

42 Upvotes

Learning data structures in Python gets easier with memory_graph visualizations. Data structures are no longer abstract concepts but concrete, clear and easy to debug.

This Hash_Map demo is a Python implementation similar to 'dict'. The demo visualizes:

  • adding key-value pairs

  • rehashing

  • lookup by key

  • iterating over keys


r/PythonLearnersHub • • Apr 24 '26

Breadth First search visualized using memory_graph

11 Upvotes

r/PythonLearnersHub • • Mar 03 '26

Anyone here using automated EDA tools?

2 Upvotes

While working on a small ML project, I wanted to make the initial data validation step a bit faster.

Instead of going column by column to check missing values, correlations, distributions, duplicates, etc., I generated an automated profiling report from the dataframe.

It gave a pretty detailed breakdown:

  • Missing value patterns

  • Correlation heatmaps

  • Statistical summaries

  • Potential outliers

  • Duplicate rows

  • Warnings for constant/highly correlated features

I still dig into things manually afterward, but for a first pass it saves some time.

Curious....do you prefer fully manual EDA or using profiling tools for the initial sweep?

Github link...

more...


r/PythonLearnersHub • • Mar 26 '26

Selection Sort Visualized for Easier Understanding

23 Upvotes

Many algorithms can be easier understood after step-by-step visualization using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵. Here's a Selection Sort example.


r/PythonLearnersHub • • Sep 10 '26

Forming a small/compact group of Python beginners

Post image
24 Upvotes

r/PythonLearnersHub • • Jul 28 '26

Yet Another Sentence Boundary Detector (rule-based, python)

2 Upvotes

I was working on chunklet-py (a chunker for sentences, documents, and code that used pysbd under the hood). Misread a benchmark and thought PySBD took 1 second to split basic text. Turns out that was wrong (PySBD is still fast for simple text). But the misunderstanding got me building my own.

Ended up faster, more accurate, and covering more languages (39 compares to 23).

Benchmarks on Sherlock Holmes (594k chars): yasbd ~1.2s warm vs PySBD ~9.0s. About 8x faster, fewer false splits.

On a golden benchmark (92 English edge cases — expanded from pysbd's original 48 with fixes and additions): yasbd scores 98.9%, pysbd 83.7%, spaCy-sentencizer 55.4%, etc.

Architecture difference: instead of mutating text with placeholder tokens and undoing it later (which breaks char offsets), yasbd finds candidate boundaries in one pass and filters false positives in another. Spans come free, no reconstruction.

Other things:

  • Streaming-first: lazy evaluation via ParagraphStream and StreamCleaner for memory-constrained environments. No need to load entire documents.

  • PySBD adapter: drop-in replacement that works with existing PySBD code. Just swap the import.

  • spaCy pipeline: register as a spaCy component with register_spacy_component(). Drop-in replacement for the default Sentencizer.

Repo: https://github.com/speedyk-005/yasbd-lib


r/PythonLearnersHub • • Feb 12 '26

Whete to start

5 Upvotes

Hello everyone, I am about to finish my undergraduate program.. and I really wanted to learn programming for a long time. The thing is I don't know where to start. I have watched a bunch of YouTube and they directly start teaching about all the terms without explaining their uses and all that.. the thing is I want to learn python for developing games and data analytics. So I was wondering if anyone of you can help me with it


r/PythonLearnersHub • • Dec 22 '25

Cocktail Shaker Sort visualized

5 Upvotes

Algorithms like Cocktail Shaker Sort (Bubble Sort in both directions) are easier to understand after visualization using memory_graph.


r/PythonLearnersHub • • Jul 01 '26

Python Visualise DataStructure & Concurrency

10 Upvotes

This online compiler let you visualise any data structure written in Python real time
https://8gwifi.org/online-compiler/


r/PythonLearnersHub • • Sep 22 '26

Please take a look at my project - online python compiler

7 Upvotes

Hey guys,

I built a simple online Python tool called pythonmastery.io and wanted to share it here.

A lot of web-based Python setups either force you to create an account, put you on a wait list, or run really slowly on free cloud servers. I wanted something instant that I could open up, test a quick script in, and close without any hassle. Best thing is that it works in all types devices including mobiles and tablets.

How it works/What it has:

- Runs Python 3.13 locally in your browser using Pyodide/Web-Assembly. Your code doesn't get sent to any server.

- No accounts, no signups, no paywalls.

- Works with standard libraries like numpy, pandas, and matplotlib.

- Has multi-tab support and auto saves your code locally so you don't lose progress if you refresh.

- Includes some interactive lessons, quizzes/tests and practice datasets if you're learning.

Check it out if you want: https://www.pythonmastery.io

It's still pretty fresh, so I'd really appreciate any feedback/ideas, or bug reports if you try it out.

Thanks!


r/PythonLearnersHub • • Feb 13 '26

Data Structures in Python Visualized

37 Upvotes

Understanding a data structure like linked list in Python is a lot easier when you can just see it: Linked_List demo

memory_graph visualizes Python objects and references, so data structures stop being abstract and become something you can debug with ease. No more endless print-debugging. No more stepping through 50 frames just to find one sneaky reference/aliasing mistake.


r/PythonLearnersHub • • Jul 30 '26

Better collision handling

2 Upvotes

r/PythonLearnersHub • • Jan 20 '26

Python's four Copies

20 Upvotes

Pick the right way to “𝐂𝐨𝐩𝐲” in Python, there are 4 options:

𝚒𝚖𝚙𝚘𝚛𝚝 𝚌𝚘𝚙𝚢

𝚍𝚎𝚏 𝚌𝚞𝚜𝚝𝚘𝚖_𝚌𝚘𝚙𝚢(𝚊):
    𝚌 = 𝚊.𝚌𝚘𝚙𝚢()
    𝚌[𝟷] = 𝚊[𝟷].𝚌𝚘𝚙𝚢()
    𝚛𝚎𝚝𝚞𝚛𝚗 𝚌

𝚊 = [[𝟷, 𝟸], [𝟹, 𝟺]]
𝚌𝟷 = 𝚊
𝚌𝟸 = 𝚊.𝚌𝚘𝚙𝚢()
𝚌𝟹 = 𝚌𝚞𝚜𝚝𝚘𝚖_𝚌𝚘𝚙𝚢(𝚊)
𝚌𝟺 = 𝚌𝚘𝚙𝚢.𝚍𝚎𝚎𝚙𝚌𝚘𝚙𝚢(𝚊)
  • c1, 𝐚𝐬𝐬𝐢𝐠𝐧𝐦𝐞𝐧𝐭: nothing is copied, everything is shared

  • c2, 𝐬𝐡𝐚𝐥𝐥𝐨𝐰 𝐜𝐨𝐩𝐲: first value is copied, underlying is shared

  • c3, 𝐜𝐮𝐬𝐭𝐨𝐦 𝐜𝐨𝐩𝐲: you decide what is copied and shared

  • c4, 𝐝𝐞𝐞𝐩 𝐜𝐨𝐩𝐲: everything is copied, nothing is shared

See it Visualized using memory_graph.


r/PythonLearnersHub • • Feb 26 '26

Visualized: Count the Values using a dict

4 Upvotes

r/PythonLearnersHub • • Jun 16 '26

Python beginning

Post image
500 Upvotes

Learnt about basic introduction of python programming from @saumyasingh

I learnt about python syntax,variables ,expressions and statements ,taking input from the user and looking forward to learn new things daily .

If someone has any suggestions then please drop in comments .