Menu
Scaler Ads

Python

How to convert Python to Cython inside Jupyter Notebooks?

Let’s see how to cythonize Python code inside Jupyter notebooks step by step. In this post we will see how to: Define and time a Python Function to benchmark How to run Python using Cython in Jupyter Notebook Let’s cythonize the function But, let’s first answer a basic question: What is the difference between CPython …

How to convert Python to Cython inside Jupyter Notebooks? Read More »

Install opencv python

Install opencv python – A Comprehensive Guide to Installing “OpenCV-Python”

OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. OpenCV-Python is a Python wrapper for the original OpenCV C++ library. Let’s see how it install OpenCV in python. Introduction OpenCV enables users to perform image and video processing tasks with ease. In this blog post, we will provide …

Install opencv python – A Comprehensive Guide to Installing “OpenCV-Python” Read More »

Install pip mac

install pip mac – How to install pip in MacOS?: A Comprehensive Guide

Pip is a widely used package manager for Python, allowing you to install and manage Python packages easily. In this blog post, we’ll explore various methods to install Pip on MacOS. I’ll provide clear, reproducible code examples for each method, making it easy for you to get started with Pip on your MacOS system. Using …

install pip mac – How to install pip in MacOS?: A Comprehensive Guide Read More »

Scrapy vs. Beautiful Soup: Which is better for web scraping?

Web scraping is the technique of extracting data from a specific website or web page. This has wide applications in: Research and publication purposes Competitor and market studies Creating data for machine learning models The extracted data can be stored in any format be it a csv, txt, json, API etc so that it can …

Scrapy vs. Beautiful Soup: Which is better for web scraping? Read More »

add Python to PATH – How to add Python to the PATH environment variable in Windows?

1. What is the purpose of adding Python to the PATH environment variable? Adding Python to the PATH environment variable in Windows allows you to run Python commands from any directory within the command prompt. Here are the steps to add Python to the PATH variable: 2. What is the PATH environment variable in Windows? …

add Python to PATH – How to add Python to the PATH environment variable in Windows? Read More »

Numpy.random.randint() in python

Numpy.random.randint() in python

numpy.random.randint function is used to get random integers from low to high values. The low value is included while the high value is excluded in the calculations. The output values are taken from the discrete uniform distribution of the range values. random.randint(low, high=None, size=None, dtype=int) Purpose: The numpy random randint function used for creating a …

Numpy.random.randint() in python Read More »

np.random.uniform

How to use numpy.random.uniform() in python.

The np.random.uniform() function is used to create an array with random samples from a uniform probability distribution of given low and high values. random.uniform(low=0.0, high=1.0, size=None) Purpose: The numpy random uniform function used for creating a numpy array with random float values from low to high interval. Parameteres: Low: float or array-like of floats,optional: Lowest …

How to use numpy.random.uniform() in python. Read More »

Python

Decorators in Python – How to enhance functions without changing the code?

Decorators in python allow you to dynamically change the functionality of another function, without altering it’s code. What? Is that possible? Yes. This covers: 1. What is a decorator and how to create one? 2. Easier way to decorate functions 3. Class decorators 4. Problem with docstrings on decorated functions and how to solve. What …

Decorators in Python – How to enhance functions without changing the code? Read More »

Python

Generators in Python – How to lazily return values only when needed and save memory?

Generators in python provide an efficient way of generating numbers or objects as and when needed, without having to store all the values in memory beforehand. Introduction You can think of Generators as a simple way of creating iterators without having to create a class with __iter__() and __next__() methods. So how to create a …

Generators in Python – How to lazily return values only when needed and save memory? Read More »

Python

Object Oriented Programming (OOPS) in Python

Object oriented programming is an effective way of writing code. You create classes which are python objects, that represented meaningful entities which defines its own behaviour (via methods) and attributes. Let’s understand what a class is and the concepts behind Object Oriented Programming in Python Everything you have encountered so far in Python, such as …

Object Oriented Programming (OOPS) in Python Read More »

dask parallel computing in python

Dask – How to handle large dataframes in python using parallel computing

Dask provides efficient parallelization for data analytics in python. Dask Dataframes allows you to work with large datasets for both data manipulation and building ML models with only minimal code changes. It is open source and works well with python libraries like NumPy, scikit-learn, etc. Let’s understand how to use Dask with hands-on examples. Dask …

Dask – How to handle large dataframes in python using parallel computing Read More »

Course Preview

Machine Learning A-Z™: Hands-On Python & R In Data Science

Free Sample Videos:

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science

Machine Learning A-Z™: Hands-On Python & R In Data Science