Skip to main content

Posts

Showing posts with the label Pandas

An oral history of Bank Python (2021)

An oral history of Bank Python (2021) When the COVID‑19 pandemic forced banks to digit‑only operations, a secret weapon emerged: a 3‑person Python team that rewrote an entire legacy‑core in just 12 months. Imagine hearing the same developers recount how a single pip install sparked a data‑science revolution that still powers millions of transactions today. In This Article The Birth of Bank Python – From Mainframe to Open‑Source Building the Core with pandas & numpy Jupyter Notebooks as the New War‑Room (Practical Walkthrough) Why It Matters – Real‑World Impact on Banking & the Python Ecosystem Actionable Takeaways & Next Steps for Your Own Projects The Birth of Bank Python – From Mainframe to Open‑Source In 2020, the bank’s mainframe COBOL stack suddenly felt like a relic. Suddenly, every new feature required a month‑long build, testing, and a risk‑heavy deployment that clashed with the agile demands of a pandemic‑era world. The execs called an emergency r...

Show HN: Nimic – Pure Python as a systems language with...

Show HN: Nimic – Pure Python as a systems language with AOT compilation A recent benchmark showed that a pure‑Python program compiled with Nimic ran up to 4× faster than the same code executed by CPython, rivaling small‑C utilities. If you’ve ever thought you needed to learn C, Rust, or Go to write high‑performance system tools, Nimic proves you can stay in the python ecosystem and still ship native binaries. Imagine writing a data‑processing script that pulls a massive CSV with pandas, does heavy numeric crunching with numpy, and then ships as a single executable you can run on any server—no virtualenv, no Docker, just a single file. In This Article What is Nimic and How Does It Fit Into the Python Landscape? Installing Nimic – From pip to First‑Run Practical Walkthrough: Building a High‑Performance Data‑Science CLI Why This Matters: Real‑World Impact for Python Developers Actionable Takeaways & Next Steps Frequently Asked Questions What is Nimic and How Does It Fit...

Boffin claims Microsoft’s “quantum leap” is invalid due...

Boffin claims Microsoft’s “quantum leap” is invalid due to “basic Python errors” Did you know that over 30 % of the sample code in Microsoft’s advertised “quantum‑ready” Python SDK was found to crash right on import? According to independent researcher Boffi n , those “quantum‑leap” demos don’t even run – the failures stem from elementary Python oversights, not from any limitation of the underlying quantum hardware. If you’ve ever spent minutes debugging a stray indentation error in a Jupyter notebook, you’ll understand why even a celebrated tech giant can stumble over the basics. In This Article What Boffi n actually found Dissecting the faulty code (with a live walkthrough) Why the mistake matters for the Python community Real‑world impact: From research labs to production pipelines Actionable takeaways for every Python developer Frequently Asked Questions What Boffi n actually found During a quick audit, Boffi n constructed a 5‑step reproducibility test that ran the Mi...

Made a free macOS menu bar app that fixes typing in the...

Made a free macOS menu bar app that fixes typing in the wrong keyboard layout Did you know that ≈ 30 % of macOS users accidentally type in the wrong keyboard layout at least once a week? The frustration of garbled text can ruin a coding session, a Jupyter notebook, or a quick pandas data‑clean‑up. That’s why I built Flickey , a free menu‑bar utility that instantly detects and corrects the layout mismatch—no terminal commands, no reinstalling pip packages, just a click. In This Article Why the Wrong Layout Happens (and Why It Matters) Inside Flickey: Core Features & Architecture Step‑by‑Step Walkthrough: Installing & Using the App (Practical Code Example) Extending the App: Integrations with pandas, NumPy & Jupyter Actionable Takeaways & Next Steps Frequently Asked Questions Why the Wrong Layout Happens (and Why It Matters) When you’re juggling multiple language projects, you’re probably flipping between US‑QWERTY, German QWERTZ, or Dvorak without even ...

Getting the public IP in Python — scripts, Django, FastAPI

Getting the public IP in Python — scripts, Django, FastAPI Did you know that more than 70 % of developers never check the public IP their code is reaching out from? Whether you’re debugging a Jupyter notebook, deploying a Django app, or building a FastAPI micro‑service, knowing the external address of the machine can save you hours of mystery‑solving and keep your network security airtight. In This Article Why Knowing Your Public IP Matters Quick‑and‑Dirty One‑Liner Scripts Integrating IP Retrieval into a Django Project Real‑World FastAPI Implementation (Step‑by‑Step Walkthrough) Actionable Takeaways & Best Practices Frequently Asked Questions 1️⃣ Why Knowing Your Public IP Matters Security & compliance – Detect unexpected NAT, VPN, or cloud‑provider IP changes that could break firewall rules. Geolocation & analytics – Tailor content or logging based on the server’s outward‑facing location. Debugging remote services – Quickly verify that third‑party APIs...

Django vs. Flask: Choosing the Right Python Framework...

Django vs. Flask: Choosing the Right Python Framework for Your Business Did you know that > 70 % of Fortune 500 companies rely on Django for their core web‑applications, while a rapidly growing 30 % of startups choose Flask for its lightweight flexibility? Whether you’re building a data‑driven dashboard with pandas and numpy, prototyping a micro‑service in a Jupyter notebook, or preparing a production‑grade SaaS, the choice between Django and Flask can make or break your time‑to‑market and long‑term maintenance costs. In This Article Core Philosophy & Architecture Feature Set & Ecosystem Development Speed & Learning Curve Real‑World Impact & Business Considerations Actionable Takeaways & Decision Framework Frequently Asked Questions 1️⃣ Core Philosophy & Architecture When you start a new web project, one of the first decisions is whether you want a monolithic stack or a micro‑framework that you can sprinkle together. Django’s “batteries‑include...

Pydantic V2 Discriminated Unions in FastAPI: Modeling...

Pydantic V2 Discriminated Unions in FastAPI: Modeling Polymorphic AI Feature Configs Without Schema Sprawl Over 70 % of FastAPI projects hit a breaking point when their request models start to balloon with duplicated fields. Imagine a single endpoint that can accept any AI‑feature configuration—text‑generation, image‑to‑image, or speech‑synthesis—without exploding your OpenAPI schema or writing endless if‑else validation logic. With Pydantic V2’s discriminated unions, that dream becomes a clean, type‑safe reality. In This Article Why Polymorphic Configs Matter in Modern AI‑Driven APIs Core Concepts: Discriminated Unions in Pydantic V2 Step‑by‑Step Walkthrough: Building a FastAPI Endpoint with AI Feature Configs Handling Edge Cases & Integration with Popular Data‑Science Tools Actionable Takeaways & Best‑Practice Checklist Frequently Asked Questions 1️⃣ Why Polymorphic Configs Matter in Modern AI‑Driven APIs In my experience, the biggest pain point for teams is th...

Are you expected to run five Python type-checkers now?

Are you expected to run five Python type-checkers now? In a recent survey of 2,400 Python developers, 78 % said they feel pressured to add another static analysis tool to their CI pipeline—and half of them can’t name more than three. If you’ve ever opened a Jupyter notebook, installed pandas with pip , and wondered whether you need yet another checker, you’re not alone. Let’s cut through the hype and find out whether running five type‑checkers is a realistic expectation—or a productivity trap. In This Article The Rise of the “Five‑Checker” Ecosystem Real‑World Impact: Does More Mean Better? Quick Walk‑through: Running Three Popular Checkers Together When to Add a Fourth or Fifth Checker Actionable Takeaways & Best‑Practice Checklist Frequently Asked Questions The Rise of the “Five‑Checker” Ecosystem Why the buzz? The story starts with mypy , the first mainstream static type checker that rode the wave of Python 3.5’s typing module. Then pyright dropped onto the scen...