The repository pattern is a design pattern that helps you separate business logic from data access code. It does so by providing a unified interface for interacting with different data sources, bringing the following advantages to your system: A practical example Let’s use Python and sqlmodel (PyPI) to demonstrate this pattern (code here): Note: In this implementation,… Continue reading What is the Repository Pattern and How to Use it in Python?
Articles on csv
Learning Rich by making a color searcher command line app
By Bob Belderbos on 6 July 2022
The other day I wanted to get serious with the awesome Rich library. As we always say: you have to build to really learn + need ideas? Scratch your own itch. If you’re struggling for ideas, see what takes you long and/or is cumbersome and see if it’s a good candidate to automate it with… Continue reading Learning Rich by making a color searcher command line app
Automating the Boring Stuff and Plotting Student Data
By Russell Helmstedter on 28 June 2022
My name is Russell Helmstedter. I am a middle school math and computer science teacher at De Anza Academy of Technology & the Arts (DATA). My first exposure to Python was in March of 2020. For some reason, I was stuck at home and couldn’t go out and do things. I decided to learn how… Continue reading Automating the Boring Stuff and Plotting Student Data
Code Challenge 57 – Analyze Olympic Games Data With Pandas – Review
By PyBites Team on 9 November 2018
In this article we review last week’s Analyze Olympic Games Data With Pandas code challenge.
Code Challenge 57 – Analyze Olympic Games Data With Pandas
By Andrea Mammoliti on 30 October 2018
Hey Pythonistas, a new week, a new Python code challenge! This week you can use Python, Pandas and all the libraries you need to analyze the data of Olympic Games and find out interesting things and present them to everyone with Matpolib, Seaborn and/or Plotly.
Code Challenge 56 – Calculate the Duration of a Directory of Audio Files – Review
By PyBites Team on 30 October 2018
In this article we review last week’s Calculate the Duration of a Directory of Audio Files code challenge.
Code Challenge 44 – Marvel Data Analysis (Alicante PyChallengeDay)
By PyBites Team on 10 November 2017
Hi Pythonistas, this is a very special edition! Today, the 10th of November, we launch our first Live Code Challenge. We partnered up with Python Alicante and we will be hosting this code challenge with them at the University of Alicante. If you don’t happen to live in Alicante but do want to code today 10am-13pm CET you are more than welcome to join this Gitter channel.
Next Time I Will Use Pandas to Parse Html Tables
By Bob Belderbos on 8 June 2017
Last week I did some html table parsing with BeautifulSoup and regex. It turns out there is an easier way to do this: Pandas.
How to Parse Common Data Formats in Python
By PyBites Team on 16 May 2017
In this post we demonstrate ways in which you can parse common data formats used in Python.
Code Challenge 04 – Twitter data analysis Part 1: Getting Data – Review
By PyBites Team on 3 February 2017
It’s Friday again so we review the code challenge of this week. It’s never late to sign up, just fork our challenges repo and start coding.