Rohan Singh has Published 171 Articles

How to rotate the X label using Pygal?

Rohan Singh

Rohan Singh

Updated on 11-Jul-2023 12:22:27

110 Views

Pygal is a Python library that is used to create interactive, customizable charts and graphs. We can rotate the x-axis label using the x_label_rotation attribute in the Pygal module. The rotation of the x-axis label makes the chart easier to read and comprehend. In this article, we will discuss how ... Read More

How to Rotate and Scale images using PyGame?

Rohan Singh

Rohan Singh

Updated on 11-Jul-2023 12:20:02

2K+ Views

We can Rotate and scale an image in Pygame using pygame.transform.rotate and pygame.transform.scale function respectively of the Pygame module. The Function is used to rotate an image by a given angle in Degrees. The function takes two parameters - the image to rotate and the angle of rotation. In this ... Read More

How to Replace Values in Columns Based on Condition in Pandas

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:21:50

6K+ Views

In Python, we can replace values in Column based on conditions in Pandas with the help of various inbuilt functions like loc, where and mask, apply and lambda, etc. Pandas is a Python library that is used for data manipulation and work with structured data. In this article, we will ... Read More

How to replace a word in Excel using Python?

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:17:35

1K+ Views

In Python, we can replace a word in Excel with another word using a third-party Python library called openpyxl. Microsoft Excel is a useful tool that is used for managing and analyzing data. Using Python we can automate some of the Excel data management tasks. In this article, we will ... Read More

Faulty calculator using Python

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:13:42

145 Views

A faulty calculator in Python is a calculator that gives incorrect results for certain calculations. In Python, we can create our own calculator and use it for doing mathematical calculations. If we want to create a faulty calculator we need to create or introduce errors in the functions that perform ... Read More

Fatman Evolutionary Model in Social Networks

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:12:15

557 Views

The Fatman model is a model that explains how social media grows and changes over time. Social Media has become an integral part of everyone’s life. Researchers are constantly trying to understand the social media growth and behavior associated with it. In this article, we will understand the Fatman model ... Read More

Fastest way to Convert Integers to Strings in Pandas DataFrame

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:07:07

3K+ Views

In Python there are many methods to convert Integers to strings in Pandas Dataframe like astype() method, apply() method, map() method, list comprehension, etc. Out of all these methods, the fastest way to convert Integers to string in Pandas data frame can be determined by tracking the time taken by ... Read More

Facts App Using Tkinter module

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 14:03:46

105 Views

In Python, we can use Tkinter module and randfacts module to create a Facts generator App. Tkinter is a Python GUI toolkit that is used to create graphical applications. You can create buttons, labels, text boxes, and other types of widgets using the Tkinter library. The randfacts is a Python ... Read More

Facts about Cython Programming Language

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 13:58:37

132 Views

Cython is a programming language that is a superset of Python and can be compiled into C code for improved performance. Cython is developed to improve the execution speed and make the code faster compared to Python. In this article, we will look at some interesting facts about Cython Programming ... Read More

Extracting the real and imaginary parts of a NumPy array of complex numbers

Rohan Singh

Rohan Singh

Updated on 10-Jul-2023 13:54:00

3K+ Views

In Python, we can extract the real and imaginary parts of a NumPy array of the complex number using the real and imag attributes of the array, respectively. Numpy is a Python library that is used for complex calculations and also provides support for complex numbers. In this article, we ... Read More

Advertisements