Python

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
如何写你的第一个Python 3程序 — step-by-step Python tutorial on Progressive Robot

如何写你的第一个Python 3程序

“Hello, World!” 程序是一个经典的,确立已久的传统电脑程序。”Hello, World!“因为能展示一个语言的基本句法,因此常被用作初学者的第一个”简单但完整”的程序,并可以被用来测试编程环境。 这个教程将指导你写出第一个Python 3中的”Hello, World”程序。 你需要[安装好Python…

Read more
Python Data Types — step-by-step Python tutorial on Progressive Robot

Python Data Types

This is an article about Python data types. It discusses different kinds of data types and their functionality. Some examples of data types are numeric, string, sequence, and mapping.

Read more
Python KeyError Exception Handling Examples — step-by-step Python tutorial on Progressive Robot

Python KeyError Exception Handling Examples

URL: https://www.progressiverobot.com/python-keyerror-exception-handling-examples/ 1. What is Python KeyError Exception? Python KeyError is raised when we try to access a key from dict, which doesn't exist. It's one of the built-in exception classes and raised by many modules that work with dict or objects having key-value pairs. 2. Python KeyError with Dictionary Let's look at a simple […]

Read more
Python print() — step-by-step Python tutorial on Progressive Robot

Python print()

URL: https://www.progressiverobot.com/python-print/ Hello learners. In this tutorial we are going to learn more about Python print function. In our last tutorial we learned about [Python float](/community/tutorials/python-float) function. Python Print Almost all of our previous tutorial contains the Python print() function. But we did not discussed about python print function to the fullest. Now we will […]

Read more
Python String Append — step-by-step Python tutorial on Progressive Robot

Python String Append

URL: https://www.progressiverobot.com/python-string-append/ Python string object is immutable. So every time we use + operator to concatenate two strings, a new string is created. If we have to append many strings, using + operator will unnecessarily create many temporary strings before we have the final result. Python String Append Let's look at a function to concatenate […]

Read more
Python super() - Python 3 super() — step-by-step Python tutorial on Progressive Robot

Python super() – Python 3 super()

URL: https://www.progressiverobot.com/python-super/ Python super() function allows us to refer to the parent class explicitly. It's useful in case of inheritance where we want to call super class functions. Python super To understand about python super function, you have to know about [Python Inheritance](/community/tutorials/python-inheritance-example). In Python Inheritance, the subclasses inherit from the superclass. Python super() function […]

Read more
ReLu Function in Python — step-by-step Python tutorial on Progressive Robot

ReLu Function in Python

URL: https://www.progressiverobot.com/relu-function-in-python/ Relu or Rectified Linear Activation Function is the most common choice of activation function in the world of [deep learning](/community/tutorials/introduction-to-machine-learning). Relu provides state of the art results and is computationally very efficient at the same time. The basic concept of Relu activation function is as follows: Return 0 if the input is negative otherwise […]

Read more
Calling C Functions from Python — step-by-step Python tutorial on Progressive Robot

Calling C Functions from Python

We can call a C function from Python program using the ctypes module. Calling C Function from Python It involves the following steps: Creating a C file (.c extension) with the required functions Creating a shared library file (.so extension) using the C compiler. In the Python program, create a ctypes.CDLL instance from the shared […]

Read more
CHAT