Uncategorized

Randamize the numpy array elements using python

to randomize the numpy array elements using python we can randomize the elements of a Numpy array in python using the ‘numpy.randam.shuffle’ function. for that firstly we have to import numpy libraries import numpy as np the we have to create a numpy array by using array = np.array([1,2,3,4,5]) now we can randomize the  array …

Randamize the numpy array elements using python Read More »

UNINSTALLING PYTHON PACKAGES USING PIP

‘Pip Installs Packages’. It’s a package management system used to install and manage software packages written in Python. Most of the packages in Python are available in the Python Package Index, also known as PyPI.” Uninstalling the Python Package “To uninstall a package, you’ll need to know the exact name of the package. Let’s say …

UNINSTALLING PYTHON PACKAGES USING PIP Read More »

Python Lambda Functions with Examples

Python Lambda Function python lambda function is similar to def keyword where def keyword is used to define a normal function in python and lambda keyword is used to define an anonymous function in python. Lambda function is used whenever function objects are required. Lambda functions are syntactically restricted to  single expression. It is mainly …

Python Lambda Functions with Examples Read More »

How to connect SQL Database in Python

Connecting MYSQL Database in python: To create the connection between mysql and python we use the connect() method of mysql.connector. To create connection we follow 5 steps in which we pass the database details like hostname ,username and password in the method calland then retruns the connection. The Steps are: STEP-1 :Download and installing the MYSQL …

How to connect SQL Database in Python Read More »

Scroll to Top