#Python

[ follow ]
#ollama
#pandas
fromInfoWorld
1 day ago
Python

How to use Pandas for data analysis in Python

Pandas provides DataFrame and Series types that enable fast loading, precise manipulation, alignment, merging, and visualization of tabular data in Python.
fromPythonbytes
1 month ago
Python

This episdoe has a typo

Pandas 3.0.0 introduces a dedicated string dtype, copy-on-write semantics, and pd.col expressions, while typos improves spellchecking in code with LSP support.
#python
Software development
fromMouse Vs Python
1 week ago

How to Type Hint a Decorator in Python - Mouse Vs Python

A decorator is a function that takes another function and returns a function; use a TypeVar bound to Callable to preserve types when type-hinting decorators.
Python
fromTechzine Global
1 week ago

Anthropic invests in Python ecosystem security

Anthropic is funding the Python Software Foundation $1.5 million over two years to strengthen CPython and PyPI security, tooling, and community support.
Information security
fromThe Hacker News
2 days ago

Hackers Use LinkedIn Messages to Spread RAT Malware Through DLL Sideloading

LinkedIn phishing uses malicious WinRAR SFX and DLL sideloading with a legitimate PDF reader to deploy a Python-based RAT executing Base64 shellcode in memory.
Python
fromRealpython
1 week ago

Intro to Object-Oriented Programming (OOP) in Python - Real Python

Object-oriented programming fundamentals in Python: defining classes, instantiating objects, and basic inheritance to write maintainable, less redundant code.
Python
fromLondon Business News | Londonlovesbusiness.com
2 weeks ago

Automating the mundane: Leveraging Rpa and Python developers to streamline your workflow - London Business News | Londonlovesbusiness.com

Hiring both RPA developers and Python programmers eliminates repetitive operational friction and enables scalable automation that combines surface-level UI tasks with complex backend integrations.
fromPythonSpeed
2 weeks ago

Unit testing your code's performance, part 1: Big-O scaling

If you're trying to make sure your software is fast, or at least doesn't get slower, automated tests for performance would also be useful. But where should you start? My suggestion: start by testing big-O scaling. It's a critical aspect of your software's speed, and it doesn't require a complex benchmarking setup. In this article I'll cover: A reminder of what big-O scaling means for algorithms. Why this is such a critical performance property.
Software development
Software development
fromZDNET
3 weeks ago

I took Harvard's free online coding classes to better catch AI's errors - and they're legit

Learning to code remains essential because AI-generated code is frequently incorrect and requires knowledgeable human review and correction.
Python
fromRealpython
4 weeks ago

LlamaIndex in Python: A RAG Guide With Examples - Real Python

Retrieval-augmented generation feeds LLMs relevant external documents at query time, improving accuracy and enabling answers from private data without fine-tuning models.
fromRealpython
4 weeks ago

LlamaIndex in Python: A RAG Guide With Examples Quiz - Real Python

In this quiz, you'll test your understanding of the LlamaIndex in Python: A RAG Guide With Examples tutorial. By working through this quiz, you'll revisit how to create and persist an index to disk, review how to reload it, and see why persistence improves performance, lowers costs, saves time, and keeps results consistent.
Python
Python
fromInfoQ
4 weeks ago

Python Workers Redux: Wasm Snapshots and Native uv Tooling

Cloudflare's Python Workers use Wasm memory snapshots to enable near-instant cold starts, significantly reducing startup times and expanding package compatibility.
Python
fromPycoders
4 weeks ago

PyCoder's Weekly | Issue #714

Macroscope detected the most real-world AI code-review bugs with fewer false positives, particularly excelling on Python.
Python
fromPyImageSearch
1 month ago

Getting Started with Streamlit: Learn Widgets, Layouts, and Caching - PyImageSearch

Streamlit converts pure Python scripts into interactive, reactive web apps quickly without writing HTML, CSS, or JavaScript, enabling fast deployment and cached performance.
Music
fromRaymondcamden
1 month ago

My Last Spotify Demo (this time I mean it - honest)

Built a personal Spotify Unwrapped using a Spotify data export, Python, and Astro, and planned mapping artists to genres without using the API.
Data science
fromTreehouse Blog
1 month ago

Beginning Data Analysis: From Questions to Insights

Learning data analysis enables beginners to turn raw information into meaningful insights, spot trends, and support evidence-based decision-making across many fields.
Software development
fromRealpython
1 month ago

Using Functional Programming in Python - Real Python

Python supports functional programming by treating functions as first-class citizens and by allowing anonymous functions via the lambda keyword.
Python
fromTalkpython
1 month ago

Computer Science from Scratch

Rebuild computer science education to serve self-taught and nontraditional programmers by teaching core CS concepts through practical, career-relevant curricula.
Software development
fromRealpython
1 month ago

How to Use Google's Gemini CLI for AI Code Assistance - Real Python

Gemini CLI provides AI-powered code analysis, bug identification, and fix suggestions directly in the terminal with Google account authentication and Node.js/Python prerequisites.
Django
fromdjangosnippets.org
1 month ago

Form field with fixed value

Create a custom Django ChoiceField subclass that enforces a single allowed value by setting choices to [(value, value)] in __init__.
Python
fromTalkpython
1 month ago

Python apps with LLM building blocks

Treat LLMs as standard APIs in Python apps: create focused endpoints, use wrappers for caching/validation, monitor responses, and constrain outputs with types.
Software development
fromInfoQ
1 month ago

Aspire 13 Delivers Multi-Language Support and Significant Enhancements Across the Platform

Aspire 13 transforms Aspire into a polyglot application platform with first-class Python and JavaScript support alongside existing .NET capabilities.
fromPython GUIs
1 month ago

Getting Started With the NiceGUI Library in Python

To get the most out of this tutorial, you should have a basic knowledge of Python. Familiarity with general GUI programming concepts, such as event handling, widgets, and layouts, will also be beneficial. Installing NiceGUI Before using any third-party library like NiceGUI, you must install it in your working environment. Installing NiceGUI is as quick as running the python -m pip install nicegui command in your terminal or command line. This command will install the library from the Python Package Index (PyPI).
Web frameworks
Python
fromdaniel.feldroy.com
2 months ago

TIL: Default code block languages for mkdocs

Set default_lang: python in mkdocs.yml using pymdownx.highlight so code blocks without language tags are highlighted as Python.
#mcp
fromMathspp
2 months ago

Floodfill algorithm in Python

ctx = canvas.getContext("2d") URL = "/blog/floodfill-algorithm-in-python/_python.txt" async def load_bitmap(url: str) -> list[list[int]]: # Fetch the text file from the URL response = await fetch(url) text = await response.text() bitmap: list[list[int]] = [] for line in text.splitlines(): line = line.strip() if not line: continue row = [int(ch) for ch in line if ch in "01"] if row: bitmap.append(row) return bitmap
Python
Python
fromMedium
2 months ago

How to activate virtual environment in python3

Use virtual environments to avoid pip 'externally-managed-environment' errors and prevent altering the system Python or other projects' dependencies.
Python
fromInfoWorld
2 months ago

Python vs. Mojo (and Java, Go, Rust, and .NET)

Mojo, alternative data-science languages, Python dataclasses, and a new PyTorch-related distributed-processing framework are current focal points for Python practitioners.
fromdaniel.feldroy.com
2 months ago

Visiting Tokyo, Japan from November 12 to 24

I'm excited to announce that me and Audrey will be visiting Japan from November 12 to November 24, 2025! This will be our first time in Japan, and we can't wait to explore Tokyo. Yes, we'll be in Tokyo for most of it, near the Shinjuku area, working from coffee shops, meeting some colleagues, and exploring the city during our free time.
Python
Software development
fromRealpython
2 months ago

Building UIs in the Terminal With Python Textual - Real Python

Textual is a Python framework for building interactive, visually appealing, and efficient terminal-based user interfaces using widgets, layouts, styling, and events.
fromWill's Blog
2 months ago

Open Source Project Maintenance 2025

Every October, I do a maintenance pass on all my projects. At a minimum, that involves dropping support for whatever Python version is no longer supported and adding support for the most recently released Python version. While doing that, I go through the issue tracker, answer questions, and fix whatever I can fix. Then I release new versions. Then I think about which projects I should deprecate and figure out a deprecation plan for them.
fromThepythoncodingstack
2 months ago

And Now You Know Your ABC

Here's the task. I want to create a class to represent a track and field event held in a competition. This entry allows you to enter the raw results as reported by the officials-the athlete's bib number and the time they clocked in a race. It then computes the event's full results. There's more we could add to make this class more complete. But I won't. You can create a list of athletes that are competing in the track and field meeting:
Running
fromRubyflow
2 months ago

Resolving the 'rest_framework' Module Not Found Error

The ModuleNotFoundError: No module named 'rest_framework' is a common issue faced by developers working with Django REST Framework (DRF).
[ Load more ]