Category: python

How to convert list to numpy array in python
In this tutorial, I will show you how to convert a list to a numpy array in python. The first thing we need to do is import the numpy module. This module is used for scientific computing and it has a lot of useful functions for data analysis. convert list to numpy array convert numpy […]

Create random number array in python with numpy
Random number generation is a common operation in many areas of computer science, such as statistics, cryptography, and computer programming. In this article, we are going to learn how to create random numbers with NumPy arrays in Python. If you don’t have numpy you have to install numpy first 1. random onedimension integer number in […]

How to create NumPy array in python
Today, I will show you how to use the NumPy array with the following example. create onedimension NumPy array create twodimension NumPy array Set minimum dimension to NumPy array Numpy can automatically upcasting type like this also can change the data type in an array like this Thank you for reading & enjoy your coding […]

Create random data to csv file using Python
Today We will create random data to csv file like this prerequisite python3 first, make sure you use python3, when you have checked your python version then, you have to install faker create randomperson.py and insert the following code. open terminal and run command to execute the file open randomperson.csv, you will see these output now, […]