Eirik Berge, Author at Towards Data Science https://towardsdatascience.com Publish AI, ML & data-science insights to a global community of data professionals. Fri, 12 Dec 2025 18:44:07 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 https://towardsdatascience.com/wp-content/uploads/2025/02/cropped-Favicon-32x32.png Eirik Berge, Author at Towards Data Science https://towardsdatascience.com 32 32 Stop Writing Spaghetti if-else Chains: Parsing JSON with Python’s match-case https://towardsdatascience.com/stop-writing-spaghetti-if-else-chains-parsing-json-with-pythons-match-case/ Sun, 14 Dec 2025 10:24:00 +0000 https://towardsdatascience.com/?p=607903 Introduction If you work in data science, data engineering, or as as a frontend/backend developer, you deal with JSON. For professionals, its basically only death, taxes, and JSON-parsing that is inevitable. The issue is that parsing JSON is often a serious pain. Whether you are pulling data from a REST API, parsing logs, or reading […]

The post Stop Writing Spaghetti if-else Chains: Parsing JSON with Python’s match-case appeared first on Towards Data Science.

]]>
How to Use Simple Data Contracts in Python for Data Scientists https://towardsdatascience.com/how-to-use-simple-data-contracts-in-python-for-data-scientists/ Tue, 02 Dec 2025 14:00:00 +0000 https://towardsdatascience.com/?p=607784 Stop your pipelines from breaking on Friday afternoons using simple, open-source validation with Pandera.

The post How to Use Simple Data Contracts in Python for Data Scientists appeared first on Towards Data Science.

]]>
Polars vs. Pandas — An Independent Speed Comparison https://towardsdatascience.com/polars-vs-pandas-an-independent-speed-comparison/ Tue, 11 Feb 2025 21:07:55 +0000 https://towardsdatascience.com/?p=597637 Overview Introduction — Purpose and Reasons Speed is important when dealing with large amounts of data. If you are handling data in a cloud data warehouse or similar, then the speed of execution for your data ingestion and processing affects the following: As you’ve probably understood from the title, I am going to provide a […]

The post Polars vs. Pandas — An Independent Speed Comparison appeared first on Towards Data Science.

]]>
Use Tablib to Handle Simple Tabular Data in Python https://towardsdatascience.com/use-tablib-to-handle-simple-tabular-data-in-python-fa9e6f0af37f/ Wed, 27 Nov 2024 12:02:07 +0000 https://towardsdatascience.com/use-tablib-to-handle-simple-tabular-data-in-python-fa9e6f0af37f/ Sometimes a Shallow Abstraction is more Valuable than Performance

The post Use Tablib to Handle Simple Tabular Data in Python appeared first on Towards Data Science.

]]>
Get started with SQLite3 in Python Creating Tables & Fetching Rows https://towardsdatascience.com/get-started-with-sqlite3-in-python-creating-tables-fetching-rows-a52bdf41e52a/ Tue, 18 Jun 2024 04:01:36 +0000 https://towardsdatascience.com/get-started-with-sqlite3-in-python-creating-tables-fetching-rows-a52bdf41e52a/ Learn to use SQLite - The most used DBMS in the world

The post Get started with SQLite3 in Python Creating Tables & Fetching Rows appeared first on Towards Data Science.

]]>
Seeing is Believing – Deepfakes and How They Warp Truth https://towardsdatascience.com/seeing-is-believing-deepfakes-and-how-they-warp-truth-38a59af51562/ Wed, 20 Mar 2024 14:12:43 +0000 https://towardsdatascience.com/seeing-is-believing-deepfakes-and-how-they-warp-truth-38a59af51562/ Bridging Autoencoders and Media Literacy

The post Seeing is Believing – Deepfakes and How They Warp Truth appeared first on Towards Data Science.

]]>
An Overview of Microsoft Fabric Going Into 2024 https://towardsdatascience.com/an-overview-of-microsoft-fabric-going-into-2024-cd51a18c07b5/ Sun, 31 Dec 2023 17:55:55 +0000 https://towardsdatascience.com/an-overview-of-microsoft-fabric-going-into-2024-cd51a18c07b5/ What can Microsoft Fabric Bring to the Table in 2024?

The post An Overview of Microsoft Fabric Going Into 2024 appeared first on Towards Data Science.

]]>
Beginner Tutorial: Connect GPT Models with Company Data in Microsoft Azure https://towardsdatascience.com/beginner-tutorial-connect-gpt-models-with-company-data-in-microsoft-azure-81177929da18/ Sun, 15 Oct 2023 15:37:45 +0000 https://towardsdatascience.com/beginner-tutorial-connect-gpt-models-with-company-data-in-microsoft-azure-81177929da18/ Using OpenAI Studio, Cognitive Search and Storage Accounts

The post Beginner Tutorial: Connect GPT Models with Company Data in Microsoft Azure appeared first on Towards Data Science.

]]>
From Meetups to Mentoring: How to Network as a Data Scientist https://towardsdatascience.com/from-meetups-to-mentoring-how-to-network-as-a-data-scientist-ecab8a95ab35/ Thu, 03 Aug 2023 18:20:02 +0000 https://towardsdatascience.com/from-meetups-to-mentoring-how-to-network-as-a-data-scientist-ecab8a95ab35/ Five Tips for Aspiring, Junior, and Senior Data Scientists

The post From Meetups to Mentoring: How to Network as a Data Scientist appeared first on Towards Data Science.

]]>
How to *Not* Get Machine Learning Models in Production https://towardsdatascience.com/how-to-not-get-machine-learning-models-in-production-742e6b79847d/ Sat, 08 Jul 2023 05:59:37 +0000 https://towardsdatascience.com/how-to-not-get-machine-learning-models-in-production-742e6b79847d/ Overview of Your Journey Introduction – No Production, No Problems! Notebooks can be Used for Everything! Why Automate When You have the Time? Testing? Just Never Make Mistakes! Dependency Management in my Head! Wrapping Up 1 – Introduction – No Production, No Problems! As data scientists, data engineers, and ML engineers we are bombarded with […]

The post How to *Not* Get Machine Learning Models in Production appeared first on Towards Data Science.

]]>
The Soft Skills You Need to Succeed as a Data Scientist https://towardsdatascience.com/the-soft-skills-you-need-to-succeed-as-a-data-scientist-ceac760230d3/ Mon, 19 Jun 2023 19:10:03 +0000 https://towardsdatascience.com/the-soft-skills-you-need-to-succeed-as-a-data-scientist-ceac760230d3/ Top 5 Soft Skills That Can Advance Your Career as a Data Scientist

The post The Soft Skills You Need to Succeed as a Data Scientist appeared first on Towards Data Science.

]]>
How Python Enumerations Make Data Configuration Elegant https://towardsdatascience.com/how-python-enumerations-make-data-configuration-elegant-a7d8356657bd/ Sun, 28 May 2023 13:54:37 +0000 https://towardsdatascience.com/how-python-enumerations-make-data-configuration-elegant-a7d8356657bd/ An introduction to using Enums in Python for ML projects

The post How Python Enumerations Make Data Configuration Elegant appeared first on Towards Data Science.

]]>
Pipelines in Scikit-Learn: An Amazing Way to Bundle Transformations https://towardsdatascience.com/pipelines-in-scikit-learn-an-amazing-way-to-bundle-transformations-9ef0594000ac/ Wed, 05 Apr 2023 14:51:12 +0000 https://towardsdatascience.com/pipelines-in-scikit-learn-an-amazing-way-to-bundle-transformations-9ef0594000ac/ How pipelines can help you write better code for machine learning and data science 😍

The post Pipelines in Scikit-Learn: An Amazing Way to Bundle Transformations appeared first on Towards Data Science.

]]>
A Short Introduction to Unfairness in AI Systems https://towardsdatascience.com/a-short-introduction-to-unfairness-in-ai-systems-3fe1a6dbfe03/ Thu, 06 Oct 2022 15:47:22 +0000 https://towardsdatascience.com/a-short-introduction-to-unfairness-in-ai-systems-3fe1a6dbfe03/ Overview of Your Journey What is Unfairness in AI Systems? Case Study: Amazon’s CV Scanner 📓 How can we Fight Unfairness in AI Systems? Modern Problems Require Modern Solutions Wrapping Up 1 – What is Unfairness in AI Systems? AI and machine learning in general has transformed the modern world. Only a few years ago, […]

The post A Short Introduction to Unfairness in AI Systems appeared first on Towards Data Science.

]]>
Don’t Underestimate the Elegant Power of Python Sets 💣 https://towardsdatascience.com/dont-underestimate-the-elegant-power-of-python-sets-9b152f9de7f4/ Thu, 04 Aug 2022 00:09:33 +0000 https://towardsdatascience.com/dont-underestimate-the-elegant-power-of-python-sets-9b152f9de7f4/ Learn the Basics of Python Sets Quickly!

The post Don’t Underestimate the Elegant Power of Python Sets 💣 appeared first on Towards Data Science.

]]>
Five Essential Presenting Tips for Data Professionals https://towardsdatascience.com/five-essential-presenting-tips-for-data-professionals-c31708ec52f5/ Mon, 18 Jul 2022 21:23:36 +0000 https://towardsdatascience.com/five-essential-presenting-tips-for-data-professionals-c31708ec52f5/ Learn how to tailor your words to the situation

The post Five Essential Presenting Tips for Data Professionals appeared first on Towards Data Science.

]]>
Master CSV Files in the Terminal With the Csvkit Package https://towardsdatascience.com/master-csv-files-in-the-terminal-with-the-csvkit-package-70984d394501/ Sat, 04 Jun 2022 06:04:44 +0000 https://towardsdatascience.com/master-csv-files-in-the-terminal-with-the-csvkit-package-70984d394501/ It is not always a good idea to use Excel.

The post Master CSV Files in the Terminal With the Csvkit Package appeared first on Towards Data Science.

]]>
How to Write High-Quality Python as a Data Scientist https://towardsdatascience.com/how-to-write-high-quality-python-as-a-data-scientist-cde99f582675/ Thu, 26 May 2022 16:53:31 +0000 https://towardsdatascience.com/how-to-write-high-quality-python-as-a-data-scientist-cde99f582675/ A Concrete Set of Skills You Should Learn!

The post How to Write High-Quality Python as a Data Scientist appeared first on Towards Data Science.

]]>
Why Software Development Skills are Essential for Data Science https://towardsdatascience.com/why-software-development-skills-are-essential-for-data-science-f53364670bd7/ Fri, 20 May 2022 16:11:23 +0000 https://towardsdatascience.com/why-software-development-skills-are-essential-for-data-science-f53364670bd7/ Data Scientists Should Learn From Software Engineers

The post Why Software Development Skills are Essential for Data Science appeared first on Towards Data Science.

]]>
Advanced Tips on How to Read CSV Files into Pandas https://towardsdatascience.com/advanced-tips-on-how-to-read-csv-files-into-pandas-84ebb170f6e5/ Sat, 26 Feb 2022 05:56:59 +0000 https://towardsdatascience.com/advanced-tips-on-how-to-read-csv-files-into-pandas-84ebb170f6e5/ Learn 5 tips that will save you a world of pain.

The post Advanced Tips on How to Read CSV Files into Pandas appeared first on Towards Data Science.

]]>