# Richard Trump

## How To Set Matplotlib Scale & Scale Label With Examples

The scale refers to the marking of data points on the axis, and Matplotlib automatically plots the scale on the x and y axes. This functionality is made possible by Matplotlib’s built-in calibration locator and formator (two built-in classes). In most cases, these two built-in classes are perfectly adequate for our drawing needs, However, in …

## How To Drop Duplicates In Pandas

“Deduplicate” literally means to remove duplicate data. In a data set, the whole process of data deduplication is to find and delete duplicate data and finally save only one existing data item.

## How To Transpose Numpy Array Examples

Numpy provides 4 methods to transpose array objects. They are rollaxis(), swapaxes(), transpose(), ndarray.T. This article will show you some examples of how to transpose a Numpy array.

## How To Set Matplotlib Plot Axis Range Programmatically

Matplotlib can automatically set x and y values based on the value range of the variable. But you can also customize the range of values on the x and y axes by the method set_xlim(xmin, xmax) and set_ylim(ymin, ymax). When setting a 3D image, the z-axis will be added. You can use set_zlim(zmin, zmzx) to …

## Pandas Sorting Example

Pandas provide two sorting methods, namely sorting by label and sorting by value. This article describes how to sort in Pandas with the 2 methods.

## What Should I Learn First About C And Python

What should I learn first about C and Python? Personally, I think we should consider it this way.

## How To Change Numpy Array Dimension Examples

There are several methods to reshape a Numpy array to a different dimensional array. This article will tell you how to use them with examples.

## How To Set Matplotlib Axis Format

In a function graph, sometimes the independent variable X and the dependent variable Y correspond exponentially, so the scale of the coordinate axis needs to be set to a logarithmic scale. This article will tell you how to implement it in Matplotlib by resetting the axis format with examples.

## How To Iterate Over Pandas DataFrame

Traversal is a required operation in many programming languages, such as Python, which iterates over list structures through the for loop. How do Pandas traverse Series and DataFrame objects? We should make it clear that they have different types of data structures and then different traversal methods. This article will tell you the difference between …

## How To Iterate Over Numpy Array With Examples

1. How To Iterate Over Numpy Array. NumPy provides the nditer() function to get the iterator object that can be used in conjunction with the for loop to iterate over array elements. The following example uses the range() function to create a 2*3 array and nditer to generate an iterator object. import numpy as np def numpy_array_iterator_example(): …