Python

Python Modules — step-by-step Python tutorial on Progressive Robot

Python Modules

URL: https://www.progressiverobot.com/python-modules/ Python Module is essentially a python script file that can contain variables, functions, and classes. Python modules help us in organizing our code and then referencing them in other classes or python scripts. Python Modules A file containing Python definitions and statements is called a python module. So naturally, the file name is […]

Read more
Python Classes and Objects — step-by-step Python tutorial on Progressive Robot

Python Classes and Objects

URL: https://www.progressiverobot.com/python-classes-objects/ Python is an object-oriented programming language. Python Classes and Objects are the core building blocks of Python programming language. Python Class By this time, all of you should have already learned about [Python Data Types](/community/tutorials/python-data-types). If you remember, basic data types in python refer to only one kind of data at a time. […]

Read more
Pandas Rename Column and Index — step-by-step Python tutorial on Progressive Robot

Pandas Rename Column and Index

URL: https://www.progressiverobot.com/pandas-rename-column-index/ Sometimes we want to rename columns and indexes in the Pandas DataFrame object. We can use pandas DataFrame rename() function to rename columns and indexes. It supports the following parameters. mapper: dictionary or a function to apply on the columns and indexes. The 'axis' parameter determines the target axis – columns or indexes. […]

Read more
How to Perform Flask-SQLAlchemy Migrations Using Flask-Migrate — step-by-step Python tutorial on Progressive Robot

How to Perform Flask-SQLAlchemy Migrations Using Flask-Migrate

*The author selected Apache Software Foundation to receive a donation as part of the Write for DOnations program.* Introduction Flask is a lightweight Python web framework that provides valuable tools and features for creating web applications in the Python Language. SQLAlchemy is an SQL toolkit offering efficient and high-performing relational database access. It provides ways […]

Read more
Python 2 vs Python 3: Practical Considerations — step-by-step Python tutorial on Progressive Robot

Python 2 vs Python 3: Practical Considerations

Python is an extremely readable and versatile programming language. While Python 2.7 and Python 3 share many similar capabilities, they should not be thought of as entirely interchangeable. This article will take you through the key differences to consider when choosing on whether to work in Python 2 or Python 3 for your development projects.

Read more
How To Use Web Forms in a Flask Application — step-by-step Python tutorial on Progressive Robot

How To Use Web Forms in a Flask Application

Flask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. In this tutorial, you’ll build a small web application with Flask that demonstrates how to use web forms. The application will have a page for displaying messages that are stored in a Python list, and a page for adding new messages. You’ll also use message flashing to inform users of an error when they submit invalid data.

Read more
CHAT