{{announcement.body}}
{{announcement.title}}

Best of DZone: Python

DZone 's Guide to

Best of DZone: Python

Below, find some of DZone's best Python content with articles covering language basics, API development, Computer Vision and ML, and so much more.

· Big Data Zone ·
Free Resource

Getting Started

10 Reasons to Learn Python in 2019 by Javin Paul: A developer walks us through the reasons why learning Python or refreshing your Python skills is great idea for those working, or hoping to work, with big data.

Golang vs. Python: Which One to Choose? by Aryya Paul: In this article we take a closer look at two popular open source languages and compare them based on performance, execution, libraries, and much more.

Running Your First Python Script by Gaurav Gahlot: A dev gives a beginner tutorial on how to work with the Python programming language, walking us through the Python interpreter and writing a Hello World script.

Making a Stand Alone Executable from a Python Script Using PyInstaller by Naurin Idris: A brief tutorial demonstrating how you can use PyInstaller to create an executable from a Python script, and some other resources for exploration.

IDEs

Getting Started With JupyterLab by Mike Driscoll: A Python thought leader takes a look at JuypterLab, and how to get started using this development environment that's proven popular for data scientists.

How to Set Up Visual Studio Code for Python Testing and Development by : VS Code is gaining popularity due to flexibility and cross-platform support. This tutorial demonstrates you can set up VS Code for Python development and testing.

Anaconda Python Tutorial: Everything You Need to Know by Mohammad Waseem: In this article, we discuss getting started with Anaconda and Python and give a short tutorial on data mining and analysis using Numpy, Pandas, and Matplotlib.

Using R on Jupyter Notebook by Jirapongse Phuriphanvichai: In this article, we discuss how to install use the R programming language in Jupyter Notebook for all of your statistical analysis needs.

Pip

Build Your First pip Package by : A senior software developer gives a step-by-step tutorial on how to create a pip package for Python, and how to make this package available to the community.

Install Python 3.7.0 on Ubuntu 18.04/Debian 9.5 by Bill Ward: A developer and big data expert gives a tutorial on how to install the Python language onto an instance of the open source Ubuntu and Debian operating systems.

Most Important ''pip'' Commands for a Python Developer by Gaurav Gahlot: This article briefly covers some of the most important pip commands that Python developers should know to manage, list, freeze, and search their packages.

Data Structures, Algorithms, and Language Basics

Sorting Dictionaries in Python by Jay Sridhar: This tutorial walks you though how to sort the entries in a Python dictionary by keys or by values for faster lookup using a sample dictionary as an example.

Python Lists of Tuples by Bill Ward: Both lists and tuples in Python are handy elements to use for structuring data. Take a look at these instructional examples of how to use each of them.

Python Logic Programming With Example by Rinu Gour: An explanation of logic programming in general and the difference between rules and constraints, followed by examples of logic programming using Python.

Algorithm and Data Structure Interview Questions for Java and Python by Javin Paul: A software developer goes over a list of 50 interview questions related to data structures and coding that will serve any coder or data scientist well.

Class Attribute vs. Instance Attribute In Python: What You Might Have Missed by Ahmed EL Bir: A discussion of one of the object-oriented aspects of the Python programming language, class attributes and instance attributes, and how to properly use them.

Six Python Tips for Beginners by Craig Oda: In this article, we discuss six tips for beginners just getting started with Python, including list comprehension, *args and **kwargs, lambda fuctions, and f string.

Performance

Python 201: A Multiprocessing Tutorial by Mike Driscoll: How to get started using the multiprocessing module in Python, which lets you avoid the GIL and take full advantage of multiple processors on a machine.

Python Memory Issues: Tips and Tricks by Neville Carvalho: Like most garbage collected languages, memory management in Python is indirect; you have to find and break references to unused data to help the garbage collector keep the heap clean.

Top 7 Free Python Compilers and Interpreters by Shailna Patidar: For those who enjoy coding in Python because of its interpreted properties, take a look at this list of the top seven free tools you can use to compile.

Python Thread Tutorial Part 1 and Part 2 by Chandu Siva: A tutorial on how devs and data professionals can use threading in Python-based code to perform parallel execution and increase the efficiency of their code.

File Handling 

Using Python to Extract Excel Spreadsheet Into CSV Files by Mark NeedhamI want to create a CSV file for each Excel sheet so that I can import the data set into Neo4j using the LOAD CSV command.

An Intro to PyPDF2 by Mike Driscoll: We cover a lot of useful information in this article, starting with how to extract metadata and text from your PDFs.

Exporting Data From PDFs With Python by : A Python thought leader and DZone MVB gives a tutorial on how to use Python for data extraction, focusing on extracting text and images from PDF documents.

Extracting PDF Metadata and Text With Python by Mike Driscoll: A Python thought leader and DZone MVB provides a tutorial on using the Python language and some packages to extract metadata and text from a PDF document.

Upload Files With Python by David Liedle: A developer gives a quick tutorial on how to use an open source SDK for Python that allows developers to easily upload files using the Python language.

Web Apps

RESTful Web Services With Python Flask by Saravanan Subramanian: Learn about developing RESTful web services using Python, from planning, to Flask install, to real-world implementation!

Listing a Directory With Python by : If you're a web dev and a Python lover, read on to learn how to use Python to search for and list contents of a directory, even if those files aren't in Python.

Developing a Basic Web Application Using Python by Arnny Y: Learn about HTTP and the request/response cycle, client-server architecture, creating and inspecting a database, and developing a basic web app using Python.

Dependency Injection: Python by Shivam Aggarwal: A developer provides a tutorial on how to best incorporate dependency injection (DI) into your Python-based applications, and links to his GitHub repo as well.

Python Custom Logging Handler Example by Bill Ward: A big data expert and dev provides a tutorial on how to use Python to write a custom logging handler that can help us input our data sets into a database.

How to Use Python With Real-Time Data and REST APIs by Carlos F. Enguix: A developer gives a tutorial on how to use Python and Anaconda to call data from a REST API, manipulate that data, and then display this data on your machine.

Flask

Flask 101: How to Add a Search Form by Mike Driscoll: A Python expert and though leader provides a great tutorial on how to use Python with Flask (and Jinja!) to create a search bar function for your web app.

Flask 101: Adding, Editing, and Displaying Data by Mike Driscoll: Learn about adding data to the database, saving data, displaying search results, and editing data in the database.

Creating REST Services With Flask by Dursun Koç: This article provides a tutorial that looks at how to create REST services with Flask (a Python microframework). Also learn how to create a virtual environment.

Django

Python Django Tutorial for Beginners by Rinu Gour: A discussion of the nature and history of the Django framework for Python, followed by a quick tutorial on how to set up a basic web app using Django.

A Quick Guide to Django I18n by Stephan Schoening: How web developers can use Python, and the Python framework Django, to add internationalization (i18n) to their web applications and reach a global audience.

Microservices 

Python REST API Example (With Microservices) — Part 1, Part 2, Part 3, and Part 4 by Bill Ward: Writing REST APIs in Python is an important skill for microservices development. This tutorial shows how to start defining a microservice with a simple class.

Documentation

Auto-Generating API Specifications as OpenAPI, WSDL, and Sphinx by Dariusz Suchojad: This article presents a workflow for auto-generation of API specifications for your Zato services.

DevOps

DevOps And Python: Best Of Both Worlds by Ankit Kumar: Combining Python and DevOps results in faster and more Agile development while keeping process and code simple with the ability to manage change.

CI/CD Pipelines for Python (Flask) — Docker Project to Kubernetes by Amit Thakur: We take a look at the continuation of a previous article and containerize a Python project using Docker, dive into some yaml, and finally deploy with Kubernetes.

Top 5 Python Frameworks For Test Automation In 2019 by Arnab Roy: This best-of list features some of the best and most popular Python frameworks to help you speed up your development process with test automation.

Perform Actions Using JavaScript in Python Selenium WebDriver by Arunkumar Velusamy: Let's take a look at a few different ways to execute JavaScript statements through Python Selenium WebDriver.

10 Awesome Features of Pytest by : In this article, we discuss Python's pytest module and the features (command line support, extensibility, fixtures) that make it a prominent testing framework.

AWS and Python

File Handling in Amazon S3 With Python Boto Library by Saravanan Subramanian: In this article, we will focus on how to use Amazon S3 for regular file handling operations using Python and Boto library.

Create an AWS Lambda Function to Stop and Start an RDS Instance by Sharadhra Sandur: Take a look at this tutorial that will show you how you can trigger RDS instances in AWS to stop and start using Python commands and Lambda functions.

Boto3: Amazon S3 as Python Object Store by Saravanan Subramanian: Use Amazon Simple Storage Service (S3) as an object store to manage Python data structures.

Working With Databases

Getting Started With Python and MongoDB by Robert Walters: Learn how to get started with Python and MongoDB by using MongoDB Atlas, installing PyMongo, connecting to MongoDB, and performing CRUD operations with PyMongo.

How to Initialize Database With Default Values in SQLAlchemy Once After Database Creation by Patrycja DybkaRecently, while working on a Python app, I needed an SQLAlchemy functionality to insert default values into SQLite database. In particular, I simply needed to execute some DDL only once after the database was created. How does SQLAlchemy handle this? Let’s investigate it on a simple database model for a prototype of a todo app created in the online database designer Vertabelo.

Tutorial: Connecting to ODBC Data Sources With Python and pyodbc by Saikrishna Teja Bobba: In this tutorial, learn how to install and use a DataDirect ODBC driver, Python, and pyodbc, making accessing ODBC databases easy. Code samples are included.

Execute PL/SQL Calls With Python and cx_Oracle by Blaine Carter: This article takes a look at a tutorial that gives an explanation on how to execute PL/SQL with Python and cx_Oracle. Also look at the setup and the cleanup.

Big Data and Analytics 

Big Data Python: 3 Big Data Analytics Tools by Bill Ward: A dev offers a tutorial on how to use Python for data analytics projects, from data ingestion the analysis itself, as well as a brief look at machine learning.

A Complete Guide To Math And Statistics For Data Science by Zulaikha Geer: In this article, we provide a comprehensive guide for individuals looking to get started with data science.

Pandas: Find Rows Where Column/Field Is Null by Mark Needham: The the code you need to count null columns and see examples where a single column is null and all columns are null.

Using Python Pandas for Log Analysis by Akshay Ranganath: A developer and architect gives a tutorial on the Pandas library for data science using Python, showing how Pandas can be used to analyze log files.

Using Python to Find Correlation Between Categorical and Continuous Variables by Shital Kat: A software developer gives a quick tutorial on how to use the Python language and Pandas libraries to find correlation between values in large data sets.

Pandas One Line Magical Code for EDA: Pandas Profile Report by Sunil Kappal: A developer gives a quick tutorial on how to use Python and the pandas-profiling package to perform analyses on large data sets.

RabbitMQ

Getting Started With RabbitMQ: Python by Jyoti Sachdeva: Explore getting started with RabbitMQ and look at a scenario where RabbitMQ could be useful.

Spark

Analytics with Apache Spark Tutorial Part 2: Spark SQL by Rick Hightower and Fadi MaalouliThis tutorial will show how to use Spark and Spark SQL with Cassandra.

What Is Spark SQL? by Todd McGrathSpark SQL allows you to use data frames in Python, Java, and Scala; read and write data in a variety of structured formats; and query Big Data with SQL.

PySpark Tutorial: Learn Apache Spark Using Python by Kislay Keshari: A data analyst gives a tutorial on how to use the Python language in conjunction with Apache Spark, known as PySpark, in order to perform big data operations.

Spark Streaming: Windowing by Neha Priya: A big data pro discusses Spark Streaming, focusing in on a particular function data scientists can use in shwn working with real-time streaming, Windowing.

PySpark Join Explained by Monika Rathor: In this article, we discuss how to use PySpark's Join in order to better manipulate data in a dataframe in Python.

Kafka

Kafka Python Tutorial for Fast Data Architecture by Bill Ward: A developer gives a tutorial on who to pull data from a Python-based web application for use in a big data application to gauge metrics from the web app.

Machine Learning 

Important Machine Learning Algorithms by Micah Williams: Learn about the most common and important machine learning algorithms, including decision tree, SVM, Naive Bayes, KNN, K-Means, and random forest.

Naive Bayes Tutorial: Naive Bayes Classifier in Python by Kislay Keshari: A look at the big data/machine learning concept of Naive Bayes, and how data sicentists can implement it for predictive analyses using the Python language.

The Best Python Libraries for Data Science and Machine Learning by Zulaikha Geer: This in-depth articles takes a look at the best Python libraries for data science and machine learning, such as NumPy, Pandas, and others.

Getting Started With Machine Learning Using Python by Mahesh Sharma: In this article, take a look at getting started with machine learning using Python.

NLP

Build Your First Python Chatbot Project by Shivashish Thkaur: Need a real-world resource for learning how to build an effective chat bot with Python? Look no further than this article. 

Simple Sentiment Analysis With NLP by Emrah Mete: This article looks at a simple application of sentiment analysis using Natural Language Processing (NLP) techniques.

Computer Vision

Introduction to Computer Vision With OpenCV and Python by Oli Moser: Learn about GPU, CPU, installing OpenCV with Python wrappers, computer vision basics, algorithms, finding contours, background subtraction, detectors, and more.

How to Deploy OpenCV on Raspberry Pi and Enable Machine Vision by Francesco Azzola: This tutorial demonstrates how to deploy the OpenCV feature on a Raspberry Pi and install development libraries to enable machine vision on your device.

Deep Learning

Malware Detection With Convolutional Neural Networks in Python by Sugandha Lahoti: Learn how to use Convolutional Neural Networks and ML to help malware analysts and information security professionals detect and classify malicious code.

11 Deep Learning With Python Libraries and Frameworks by Rinu Gour: This article takes a look at eleven Deep Learning with Python libraries and frameworks, such as TensorFlow, Keras, Caffe, Theano, PyTorch, and Apache mxnet.

IoT

Meet Rocky: An IoT Adventure by John Vester: See how one developer used a Raspberry Pi, cameras, and a motion tracker to solve the mystery of a food-stealing animal, leading to the discovery of a new friend.

Marker Tracking via WebSockets With a Raspberry Pi by : Check out this tutorial on how to implement marker tracing via WebSockets using a Raspberry Pi and USB cameras.

Courses and Books 

Getting Started

Top 10 Best Python Book for Beginners and Experienced Developers by Rinu Gour: A list of some of the top books that will help both beginners and experienced developers learn more about the Python language and its programming applications.

10 Free Courses to Learn Python in 2019 by Javin Paul: In this article, we discuss ten free courses to learn the basics behind python for object-oriented programming, data science, and machine learning.

Machine Learning

5 TensorFlow and ML Courses for Programmers by Javin Paul: This article looks at five TensorFlow and Machine Learning courses for programmers, such as a Complete Guide to TensorFlow for Deep Learning With Python.

6 Free Data Mining and Machine Learning eBooks by Richard Gall: In this article, we discuss six free data mining and machine learning eBooks on topics like OpenCV, NLP, Hadoop, and Splunk.

5 Free eBooks to Help You Learn Machine Learning in 2019 by Richard Gall: To help you get started with Machine Learning, look at this list of 5 free Machine Learning eBooks from Packt.

Web Scraping

Web Scraping Tutorial: Using Python to Find Cheap Flights! by Omar Aref: A tutorial on how to create a web scraping program that will search for and find cheap airline flight prices, and then send this prices to your email.

WebScraping With Python, Beautiful Soup, and Urllib3 by Leaundrae Mckinney: In this article, we discuss how to use Python's Beautiful soup and Urllib3 in order to scrape websites for information.

Misc

Programmer Levels [Comic] by Daniel Stori: Daniel Stori playfully walks us through the various developer ranks and personalities.

Image Processing in Python With Pillow by Joyce Echessa: Learn some of the more common image processing operations found in applications that use Python. Pillow is a powerful library, especially when used with Python.

How to Create Your Own Cryptocurrency Blockchain in Python by Dr. Michael Garbade: This tutorial demonstrates how to create a cryptocurrency blockchain using Python by building a chain, adding constructor methods, confirming validity, and more!

Bulk Geocode Addresses Using Google Maps and GeoPy by Cedric Brun: A tutorial on how to use Python, the GeoPy libarary, and the Geocoding API to pull and properly format large amounts of geographical data.

Topics:
python

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}