Showing posts with label PyBloggers. Show all posts
Showing posts with label PyBloggers. Show all posts

Monday, February 11, 2019

The Factory Method Pattern and Its Implementation in Python

This article explores the Factory Method design pattern and its implementation in Python. Design patterns became a popular topic in late 90s after the so-called Gang of Four (GoF: Gamma, Helm, Johson, and Vlissides) published their book Design Patterns: Elements of Reusable Object-Oriented Software. The book describes design patterns as a core design solution to […]

The post The Factory Method Pattern and Its Implementation in Python appeared first on PyBloggers.



from PyBloggers
read more

Thursday, February 7, 2019

Quick Tip – Speed up Pandas using Modin

I ran across a neat little library called Modin recently that claims to run pandas faster. The one line sentence that they use to describe the project is: Speed up your Pandas workflows by changing a single line of code Interesting…and important if true. Using modin only requires importing modin instead of pandas and thats […]

The post Quick Tip – Speed up Pandas using Modin appeared first on PyBloggers.



from PyBloggers
read more

Tuesday, February 5, 2019

The Ultimate List of Data Science Podcasts

Podcasts are a great way to immerse yourself in an industry, especially when it comes to data science. The field moves extremely quickly, and it can be difficult to keep up with all the new developments happening each week! Take advantage of those times in the day when your body is busy, but your mind […]

The post The Ultimate List of Data Science Podcasts appeared first on PyBloggers.



from PyBloggers
read more

Sunday, February 3, 2019

Python Development in Visual Studio Code

One of the coolest code editors available to programmers, Visual Studio Code, is an open-source, extensible, light-weight editor available on all platforms. It’s these qualities that make Visual Studio Code from Microsoft very popular, and a great platform for Python development. In this article, you’ll learn about Python development in Visual Studio Code, including how […]

The post Python Development in Visual Studio Code appeared first on PyBloggers.



from PyBloggers
read more

Wednesday, January 30, 2019

Less than a week left to bid for a day’s work from me

Just a quick reminder that you’ve only got until next Tuesday to bid for a day’s work from me – so get bidding here. The full details and rules are available in my previous post, but basically I’ll do a day’s work for the highest bidder in this auction – working on coding, data science, […]

The post Less than a week left to bid for a day’s work from me appeared first on PyBloggers.



from PyBloggers
read more

Tuesday, January 29, 2019

Python "for" Loops (Definite Iteration)

This tutorial will show you how to perform definite iteration with a Python for loop. In the previous tutorial in this introductory series, you learned the following: Repetitive execution of the same block of code over and over is referred to as iteration. There are two types of iteration: Definite iteration, in which the number […]

The post Python "for" Loops (Definite Iteration) appeared first on PyBloggers.



from PyBloggers
read more

Data Science Project: Profitable App Profiles for App Store and Google Play

At Dataquest, we strongly advocate portfolio projects as a means of getting a first data science job. In this blog post, we’ll walk you through an example portfolio project. This is the third project in our Data Science Portfolio Project series: Is Fandango Still Inflating Ratings? Where to Advertise an E-learning Product Profitable App Profiles […]

The post Data Science Project: Profitable App Profiles for App Store and Google Play appeared first on PyBloggers.



from PyBloggers
read more

Monday, January 28, 2019

Jupyter Notebook: An Introduction

The Jupyter Notebook is an open source web application that you can use to create and share documents that contain live code, equations, visualizations, and text. Jupyter Notebook is maintained by the people at Project Jupyter. Jupyter Notebooks are a spin-off project from the IPython project, which used to have an IPython Notebook project itself. […]

The post Jupyter Notebook: An Introduction appeared first on PyBloggers.



from PyBloggers
read more

Wednesday, January 23, 2019

Python’s Requests Library (Guide)

The requests library is the de facto standard for making HTTP requests in Python. It abstracts the complexities of making requests behind a beautiful, simple API so that you can focus on interacting with services and consuming data in your application. Throughout this article, you’ll see some of the most useful features that requests has […]

The post Python’s Requests Library (Guide) appeared first on PyBloggers.



from PyBloggers
read more

Monday, January 21, 2019

Working With Files in Python

Python has several built-in modules and functions for handling files. These functions are spread out over several modules such as os, os.path, shutil, and pathlib, to name a few. This article gathers in one place many of the functions you need to know in order to perform the most common operations on files in Python. […]

The post Working With Files in Python appeared first on PyBloggers.



from PyBloggers
read more

Wednesday, January 16, 2019

Async IO in Python: A Complete Walkthrough

Async IO is a concurrent programming design that has received dedicated support in Python, evolving rapidly from Python 3.4 through 3.7, and probably beyond. You may be thinking with dread, “Concurrency, parallelism, threading, multiprocessing. That’s a lot to grasp already. Where does async IO fit in?” This tutorial is built to help you answer that […]

The post Async IO in Python: A Complete Walkthrough appeared first on PyBloggers.



from PyBloggers
read more

Bid for a day’s work from me

Summary: I will do a day’s work for the highest bidder in this auction. This could mean you get a day’s work from me very cheaply. Please read all of this post carefully, and then submit your bid here before 5th Feb. This experiment is based very heavily on David MacIver’s experiment in auctioning off […]

The post Bid for a day’s work from me appeared first on PyBloggers.



from PyBloggers
read more

Monday, January 14, 2019

Speed Up Your Python Program With Concurrency

If you’ve heard lots of talk about asyncio being added to Python but are curious how it compares to other concurrency methods or are wondering what concurrency is and how it might speed up your program, you’ve come to the right place. In this article, you’ll learn the following: What concurrency is What parallelism is […]

The post Speed Up Your Python Program With Concurrency appeared first on PyBloggers.



from PyBloggers
read more

Probabilistic Programming in Python

Learn about probabilistic programming in this guest post by Osvaldo Martin, a researcher at The National Scientific and Technical Research Council (CONICET). Bayesian Inference Bayesian statistics is conceptually very simple; we have the knowns and the unknowns; we use Bayes’ theorem to condition the latter on the former. If we are lucky, this process will reduce the uncertainty about the unknowns. […]

The post Probabilistic Programming in Python appeared first on PyBloggers.



from PyBloggers
read more

Wednesday, January 9, 2019

Django Migrations: A Primer

Since version 1.7, Django has come with built-in support for database migrations. In Django, database migrations usually go hand in hand with models: whenever you code up a new model, you also generate a migration to create the necessary table in the database. However, migrations can do much more. You are going to learn how […]

The post Django Migrations: A Primer appeared first on PyBloggers.



from PyBloggers
read more

Monday, January 7, 2019

Quick Tip: Consuming Google Search results to use for web scraping

While working on a project recently, I needed to grab some google search results for specific search phrases and then scrape the content from the page results. For example, when searching for a Sony 16-35mm f2.8 GM lens on google, I wanted to grab some content (reviews, text, etc) from the results.  While this isn’t hard […]

The post Quick Tip: Consuming Google Search results to use for web scraping appeared first on PyBloggers.



from PyBloggers
read more

The Ultimate Guide to Python Type Checking

In this guide, you will get a look into Python type checking. Traditionally, types have been handled by the Python interpreter in a flexible but implicit way. Recent versions of Python allow you to specify explicit type hints that can be used by different tools to help you develop your code more efficiently. In this […]

The post The Ultimate Guide to Python Type Checking appeared first on PyBloggers.



from PyBloggers
read more

Thursday, January 3, 2019

Quick Tip: Comparing two pandas dataframes and getting the differences

There are times when working with different pandas dataframes that you might need to get the data that is ‘different’ between the two dataframes (i.e.,g Comparing two pandas dataframes and getting the differences). This seems like a straightforward issue, but apparently its still a popular ‘question’ for many people and is my most popular question […]

The post Quick Tip: Comparing two pandas dataframes and getting the differences appeared first on PyBloggers.



from PyBloggers
read more

Wednesday, January 2, 2019

Modeling Polymorphism in Django With Python

Modeling polymorphism in relational databases is a challenging task. In this article, we present several modeling techniques to represent polymorphic objects in a relational database using the Django object-relational mapping (ORM). This intermediate-level tutorial is designed for readers who are already familiar with the fundamental design of Django. Free Bonus: Click here to get the […]

The post Modeling Polymorphism in Django With Python appeared first on PyBloggers.



from PyBloggers
read more

Monday, December 31, 2018

Python Community Interview With Corey Schafer

For this week’s community interview, I am joined by Corey Schafer, of YouTube fame. Corey is a full-time content creator publishing regular Python tutorials on YouTube. In this interview, we talk to Corey about his YouTube channel and his advice for budding YouTubers and content creators, getting his first developer job, and his passion for […]

The post Python Community Interview With Corey Schafer appeared first on PyBloggers.



from PyBloggers
read more

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...