Planet Python
23h52 26  janvier
Matthew Wright: Selection in pandas using query
The query method in pandas DataFrames provides some flexibility in code, and potential speedups using numexpr.The post Selection in pandas using query appeared first on wrighters.io.
19h30 26  janvier
PyCoderís Weekly: Issue #457 (Jan. 26, 2021)
457 - JANUARY 26, 2021 View in Browser Unravelling for Statements Learn how Pythonís for statement works behind the scenes by diving into the bytecode and CPython source code. BRETT CANNON You Donít Really Need a Virtualenv Virtual environments are a staple of the Python world, but they...
16h39 26  janvier
Everyday Superpowers: SOLID Practice with Fizz Buzz
I'm convinced that the best way to grow as a developer is to practice. In particular, intentionally practicing things you aren't good at or haven't tried. In that vein, I started a weekly meeting at work in the spirit of a software kata.I am encouraging my teammates to solve these...
15h30 26  janvier
Stack Abuse: Matplotlib Box Plot - Tutorial and Examples
Introduction There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlibís popularity is due to its reliability and utility - itís able to create both simple and complex plots with little code. You can also customize the plots in...
14h00 26  janvier
Real Python: Evaluate Expressions Dynamically With Python eval()
The built-in Python function eval() is used to evaluate Python expressions. You can pass a string containing Python, or a pre-compiled object into eval() and it will run the code and return the result. Although Pythonís eval() is an incredibly useful tool, the function has some important security...
13h30 26  janvier
Stack Abuse: Integrating MongoDB with Flask Using Flask-PyMongo
Introduction Building a web app almost always means dealing with data from a database. There are various databases to choose from, depending on your preference. In this article, we shall be taking a look at how to integrate one of the most popular NoSQL databases - MongoDB - with the Flask micro...
06h40 26  janvier
Codementor: Keras training with EarlyStopping callback to avoid overfitting
Here is another simple tutorial on how to train simple neural network with callback. A great feature to avoid overfitting
06h05 26  janvier
Mike Driscoll: Create an EXIF Viewer with PySimpleGUI
The Pillow package gives you the ability to extract EXIF (Exchangeable Image File Format) metadata from images. You can get a lot of information about your images via the EXIF data. However, there are some key data points that are more useful than others. For those pieces of data, it’s nice...
00h31 26  janvier
Podcast. init : Making The Sans I O Ideal A Reality For The Websockets Library
Working with network protocols is a common need for software projects, particularly in the current age of the internet. As a result, there are a multitude of libraries that provide interfaces to the various protocols. The problem is that implementing a network protocol properly and handling all of...
20h16 25  janvier
BreadcrumbsCollector: Python & the Clean Architecture in 2021
It’s been almost 3 years since I used the Clean Architecture in production for the first time. I made it to quite a few conferences to talk about it (e.g. see Clean Architecture in Python talk from PyGotham 2018). Also, I wrote an article about the Clean Architecture that made it to...
17h30 25  janvier
Test and Code: 142: MongoDB - Mark Smith
MongoDB is possibly the most recognizable NoSQL document database. Mark Smith, a developer advocate for MongoDB, answers my many questions about MongoDB. We cover some basics, but also discuss some advanced features that I never knew about before this conversation.Special Guest: Mark Smith...
16h27 25  janvier
Real Python: How to Use Python: Your First Steps
Are you looking for a place to learn the basics of how to use Python from a beginnerís perspective? Do you want to get up and running with Python but donít know where to start? If so, then this tutorial is for you. This tutorial focuses on the essentials you need to know to start programming with...
15h28 25  janvier
Stack Abuse: Seaborn Box Plot - Tutorial and Examples
Introduction Seaborn is one of the most widely used data visualization libraries in Python, as an extension to Matplotlib. It offers a simple, intuitive, yet highly customizable API for data visualization. In this tutorial, weíll take a look at how to plot a Box Plot in Seaborn. Box plots are used...
14h47 25  janvier
PyCharm: Thank You, PyCharm Users: Together We Supported Python
Last December PyCharm supported the Python Software Foundation (PSF) on their Q4 2020 fundraiser campaign. All proceeds from every new PyCharm Professional Edition license purchased with the discount code ISUPPORTPYTHON2020í went to the PSFís general fund. The Python Software Foundation is the...
14h19 25  janvier
Python Pool: How to Remove Punctuation From a String, List, and File in Python
While doing some Python projects, we need to remove the Punctuation marks to make our code look cleaner. So, keeping this in mind, Python Pool brings you an in-depth article on removing the punctuation marks from a string, list, and file in Python. The whole article will be divided into three...
13h00 25  janvier
Mike Driscoll: Image Processing with Python Kickstarter Ending Soon
My Kickstarter for my latest book, Pillow: Image Processing with Python is ending in 8 days. You should check it out and learn how you can edit photos with Python You will learn about the following topics in this book: Chapter 1 – Pillow Basics Chapter 2 – Colors Chapter 3 –...
08h14 25  janvier
Andre Roberge: Friendly-contest: we have a winner
nbsp;Since my last post, no new issue has been filed. As the deadline has passed (8 am, AST), I have written a short program to randomly draw a winner. In my last post, I listed incorrectly the entries which I double-checked prior to writing the program, which I tested a few times before the...
06h05 25  janvier
Mike Driscoll: PyDev of the Week: Leodanis Pozo Ramos
This week we welcome Leodanis Pozo Ramos ( lpozo78) as our PyDev of the Week Leodanis is a contributor and author for Real Python. You can see some of his projects over on Github or see what he’s up to on his own website. Let’s spend a few moments getting to know Leodanis better Can...
21h37 24  janvier
Brett Cannon: Unravelling for statements
As part of my series on Pythonís syntactic sugar, I am going to cover the for statement. As usual, I will be diving into CPythonís C code, but understanding or even reading those parts of this post wonít be required in order to understand how the unravelling works.The bytecodeLetís start with a...
15h17 24  janvier
Codementor: Information Extraction from Text Using Python
We will implement information extraction from scratch in Python using the popular spaCy library.
13h54 24  janvier
Python Pool: Python new Explained With Examples
Hello geeks and welcome in today’s article we will cover Python new. Along with that, we will look at the definition and application of this method. We will do all that with the help of examples. As we know that python is a high-level programming language. With the help of it, we can also do...
13h51 24  janvier
Python Pool: Python Dynamic Array: Implementation with Examples
Hello coders In this article, we will be discussing python dynamic array implementation. We will also cover various examples to make our concept clear. An array in Python is a container that holds a fixed number of items having the same data type. So, let us now get into our topic in detail. ...
13h50 24  janvier
Python Pool: Implementing Python Lock in Various Circumstances
Hello geeks and welcome in this article, we will cover python lock. Along with that, we will look at the need for python lock and how to implement it. To achieve all this, we will look at a couple of examples. When one thread tries to modify a shared resource simultaneously, another thread is...
11h31 24  janvier
Andre Roberge: Friendly-contest: 20 hours left
There is only 20 hours left in the Friendly-traceback contest: write bad code to win a prize. After a slow start, there has been quite a few submissions lately which will definitely help to improve Friendly-traceback. Some submissions included references to StackOverflow questions and were thus...
09h10 24  janvier
Python Pool: 7 Powerful ways to Convert string to list in Python
Hello coders In this article, we will be learning how to convert string to list in python. At first, we must understand the difference between the two. A string in Python can consist of only characters, whereas a list can consist of any data type. So, let us explore the 7 different ways to...