Found 27104 Articles for Server Side Programming

All Combinations For A List Of Objects

Shriansh Kumar
Updated on 21-Jul-2023 16:12:44

9K+ Views

Printing all the combinations for a list of objects is one of the common operations that we can perform on a given list. The 'itertools' module of Python provides some built-in methods that are efficient and easy to use, making it simple to generate possible combinations of list objects. We are going to learn how we can use the 'itertools' module through this article. Python program to Print all Combinations for a list of Objects Let's discuss the in-built methods of itertools along with their example program that will show us how to produce the combinations for ... Read More

How to Control Laptop Screen Brightness Using Python?

Prince Yadav
Updated on 21-Jul-2023 14:43:10

869 Views

Python has become one of the most popular programming languages in the world, thanks to its simplicity, versatility, and wide range of applications. With its extensive libraries and frameworks, Python can be used for anything from web development to machine learning, and everything in between. One of the most popular libraries for data analysis and manipulation in Python is Pandas, which offers powerful tools for working with tabular data. In this tutorial, we'll be using Python and the screen−brightness−control library to explore how to control laptop screen brightness. We'll show you how to use Python to adjust your screen brightness ... Read More

How to Connect Scatterplot Points With Line in Matplotlib?

Prince Yadav
Updated on 21-Jul-2023 13:40:01

3K+ Views

Python is a popular programming language that is widely used in data science, machine learning, and other fields. One of the reasons for its popularity is the availability of powerful libraries such as Matplotlib, which allows users to create high−quality visualizations with ease. Matplotlib is a popular data visualization library in Python that provides a wide range of tools for creating different types of plots, including scatter plots. In this tutorial, we will explore how to connect scatterplot points with a line in Matplotlib. Scatter plots are useful for visualizing the relationship between two variables, and adding a line to ... Read More

How to connect ReactJS with Flask API?

Prince Yadav
Updated on 21-Jul-2023 13:28:04

3K+ Views

Building modern web applications that are both scalable and engaging requires the use of relevant technologies. ReactJS and Flask are two popular frameworks that are commonly used for front−end and back−end development respectively. In this article, we'll explore the process of connecting ReactJS with Flask API to create robust web applications that take advantage of the unique features offered by both technologies. We'll provide you with a step−by−step guide on how to set up a Flask API, enable Cross−Origin Resource Sharing (CORS), make API requests from ReactJS, display the API data in the user interface, and handle API errors. ... Read More

How to Concatenate Images Using Pillow in Python?

Prince Yadav
Updated on 21-Jul-2023 13:48:43

784 Views

Python is a popular programming language used by developers worldwide to build various applications. One of the significant advantages of Python is the availability of several powerful libraries that simplify complex tasks. One such library is Pillow, which is used for image−processing tasks like resizing, cropping, and manipulating images. In this tutorial, we will explore how to use Pillow to concatenate images horizontally and vertically in Python. Image concatenation is the process of combining two or more images into a single image. By concatenating images, we can create stunning image collages, combine multiple images into a single image, or create ... Read More

SPSA (Simultaneous Perturbation Stochastic Approximation) Algorithm using Python

Jaisshree
Updated on 21-Jul-2023 11:28:02

332 Views

A simultaneous perturbation stochastic optimization algorithm (SPSA) finds the minimum of an objective function by simultaneously perturbing the objective function. Using SPSA, the objective function gradient is estimated by evaluating a small number of functions at random perturbations. It is particularly useful when the objective function is noisy, non-differentiable, or has many parameters. A variety of applications, such as system identification, control, and machine learning, have been successfully implemented with this algorithm. Advantages Of Using The SPSA Algorithm The SPSA has been applied in various realms such as engineering, finance, and machine learning. It has several advantages ... Read More

Skin Cancer Detection using TensorFlow in Python

Jaisshree
Updated on 21-Jul-2023 11:01:04

515 Views

Early detection of any disease, especially cancer, is very crucial for the treatment phase. One such effort made in this direction is the use of machine learning algorithms to detect and diagnose skin cancer with the help of a machine learning framework like Tensorflow. The traditional method of cancer detection is quite time-consuming and requires professional dermatologists. However, with the help of TensorFlow, not only can this process be made fast, but more accurate and efficient. Moreover, people who do not get timely access to doctors and dermatologists, can use this meanwhile. Algorithm Step 1 − Import the ... Read More

How to Compress Images Using Python and PIL?

Prince Yadav
Updated on 20-Jul-2023 20:24:17

9K+ Views

In today's digital era, images have become a necessary part of our lives. They play an important and significant role in communication and expression across a wide range of platforms, from social media to websites. However, high−quality images can consume a considerable amount of storage space and it'll result in slower website loading times and longer upload times. Image compression becomes applicable in this situation. By reducing the size of an image, you can ensure faster loading times, lower bandwidth usage, and more storage space. In this article, we will look into the process of compressing images using Python and ... Read More

How to Compare two Dataframe with Pandas Compare?

Prince Yadav
Updated on 20-Jul-2023 20:13:51

814 Views

If you work with data analysis or data science, then you already know the importance of comparing DataFrames. Fortunately, the Python library, pandas, offers a handy " compare " method that allows you to compare two DataFrames and highlight their differences. This method is incredibly useful for identifying discrepancies between sets of data and making informed decisions based on those differences. In this article, we will explore how to use pandas compare to compare two DataFrames and dive into some of the customization options available. Whether you're an experienced data analyst or a fresher, this article will provide you ... Read More

How to Change Column Type in PySpark Dataframe

Prince Yadav
Updated on 20-Jul-2023 20:04:26

6K+ Views

Python is a versatile and powerful programming language that has gained immense popularity in the field of data analysis and processing. With its extensive range of libraries and frameworks, Python provides developers with robust tools to handle complex data operations efficiently. PySpark, a Python API for Apache Spark, takes Python's capabilities to the next level by offering distributed computing capabilities for big data processing. One of the fundamental components of PySpark is the DataFrame, a tabular data structure that allows for seamless manipulation and analysis of large datasets. In this tutorial, we will explore an essential aspect of working with ... Read More

Advertisements