How to use glob() function to find recursively in python

Glob is a general term used to define techniques to match specified patterns according to rules related to unix shell. In python, the glob module is used to retrieve files matching a speific pattern. Using glob() function to find files recursively We can use the function glob.glob()  or glob().iglob() directly from glob module to path …

How to use glob() function to find recursively in python Read More »

How To do Train Test Split Using Sklearn in python

  Introduction: Data splitting is a critical step in building machine learning models, ensuring their accuracy and generalization. In Python, Sklearn provides powerful tools for this task, notably the Train-Test Split method. In this guide, we’ll delve into the process of splitting data using Sklearn, implementing it with a student dataset to solidify understanding. Understanding …

How To do Train Test Split Using Sklearn in python Read More »

Capitalize first letter of all the words in a string in Python

In this tutorial, we will learn how to capitalize the first letter of all the words in a string using Python. This is a very simple tutorial. we are going to solve this problem shortly. First letter capitalization For the first letter capitalization, we have many approaches. To solve this problem we have to import …

Capitalize first letter of all the words in a string in Python Read More »

Write a C++ program to find the last element of an array

Here, we discuss how we find the last element of an array using C++. CODE #include<iostream> using namespace std; int main(){ int arr[]={5,6,7,8,9} int size = sizeof(arr) / sizeof(arr[0]); int lastElement = arr[size – 1]; cout<<“The last element of the array is: “<<lastElement<<endl; return 0; } OUTPUT The last element of the array is: 9 …

Write a C++ program to find the last element of an array Read More »

Plot Histogram in Python using Matplotlib in Python

Hello developers, in this article we will discuss about Plotting Histogram in Python using Matplotlib in Python. We know, histogram is a powerful visualization tool used in the data analysis purpose for understanding the distribution of data. The python’s Matplotlib library offers many capabilities and functionality for creating histograms easily. Steps to plot a histogram …

Plot Histogram in Python using Matplotlib in Python Read More »

Scroll to Top