Bipolar Output D/A Converters

Manish Kumar Saini
Updated on 17-Jul-2023 17:18:51

1K+ Views

In digital electronics, a D/A converter, also called Digital-to-Analog Converter, is an electronic device that converts digital signal inputs into analog signal outputs. Depending on the polarity of output signals, D/A converters can be classified into two types namely, Unipolar-Output D/A Converters and Bipolar-Output D/A Converters. A unipolar-output D/A converter can produce only positive analog signals as output, whereas a bipolar-output D/A converter can produce both positive and negative analog signals as output. In this tutorial, we will discuss bipolar-output D/A converts, along with their construction, types, working, advantages, and applications. So, let’s start with the basic definition ... Read More

Set Seaborn Chart Size

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:16:30

538 Views

Seaborn is a Python data visualization library based on Matplotlib. It provides beautiful default styles and color palettes to make statistical plots more attractive. It is also closely integrated with the data structures from Pandas. Seaborn aims to make visualization the central part of exploring and understanding data. This type of charts allows users to switch between different visual representations for the same variables for a better understanding of the dataset. Seaborn is used in various applications for visualizing the relationship between variables, examining univariate and bivariate distributions, and more. A univariate distribution shows the distribution of a single variable, ... Read More

Block Coding in Digital Electronics

Manish Kumar Saini
Updated on 17-Jul-2023 17:16:02

7K+ Views

In digital electronics, block coding is a technique of encoding data into a specific format. It is mainly used to detect and correct errors occurred in the information during transmission and storage. This is done by adding a block code of redundant information to the main data. Block coding is mainly employed to create a robust method of data transmission and storage. In the block coding, data is encoded by splitting it into multiple blocks of a fixed size and applying encoding techniques to each of these blocks separately. In block coding, the input data is taken ... Read More

Slice a 3D Tensor in PyTorch

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:12:36

2K+ Views

The 3D Tensor in Python is known for its array of matrices whereas the 1D and 2D Tensor represents vector and matrix respectively. The Pytorch is defined by an open-source module of machine learning framework based on Python programming and it provides the module named torch. In Python, we have some built-in functions like randn(), rand(), and split() that can be used to represent the slice of a 3D tensor in Pytorch. Syntax The following syntax is used in the examples − import torch This is a Python module that holds the base class of all neural networks. It ... Read More

Get Random Range Average Using Python

Rohan Singh
Updated on 17-Jul-2023 17:12:22

800 Views

Python provides a robust set of tools and libraries to generate random numbers within a specific range and calculate their average. We can use the Numpy library, statistics module, random module, and random.choice function etc to Randomly generate numbers within a range and find their average. In this article, we will use these methods to generate random numbers and find their average. Algorithm A general algorithm to generate random numbers and find the average using Python is as follows: Generate random numbers within a range Store these numbers in a list or array. Calculate the average of the ... Read More

Skip Rows While Reading CSV File Using Pandas

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:10:52

3K+ Views

Python has a built-in method read_csv that can be used to set the skip rows while reading csv file using Pandas. The CSV stands for Comma Separated Values and is known as an extension of a file that contains the database. This technique can be used in any application that involves reading and processing data from a CSV file. The various application used like data filtering, excel tool, etc. Syntax The following syntax is used in the examples − read_csv('file_name.csv', skiprows= set the condition according to user choice) This is a built-in function of the pandas module that can ... Read More

Show Values on Seaborn Barplot

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:07:37

6K+ Views

In Seaborn's barplot, the average value of a numerical variable is displayed, while error bars indicate the range of possible values surrounding the average. When comparing values to 0, it is helpful. In Python, we have some built-in functions like barplot(), enumerate(), and, text() that can be used to Show Values on Seaborn Barplot. For example, we might compare the average sales of various products or the average test results of students in various classrooms using a barplot. Syntax The following syntax is used in the examples − barplot() This is an in-built function in Python that will use to ... Read More

Display Date in Different Country Format using Python

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:05:54

1K+ Views

In Python, we have some time in-built functions like datetime.now(), utcnow(), astimezone(), and strftime() that can be used to display time in the different country formats. In this program, we will use the modules namely datetime(to access all content related to date and time) and pytz(allows for timezone calculation and conversion of datetime). To get the timezone of different countries the UTC will be set by an in-built function named utcnow(). The problem statement follows some built-in functions of Python such as datetime.now(), utcnow(), astimezone(), and strftime() that will be used to display time in different country formats. Syntax The ... Read More

Get Individual Components of Current Date and Time in Python

Tapas Kumar Ghosh
Updated on 17-Jul-2023 17:01:57

526 Views

In Python, we have some time in-built functions i.e. datetime(), today(), now(), and strftime() that can be used to get the individual components of the current date-time. The individual component of the current date-time means the exact present timing and date. To solve this type of problem we will use some predefined method related to the module datetime. For example- The current date and time are important for any work culture. Syntax The following syntax is used in the examples are − datetime.now() This is a predefined method used in Python that includes years, months, days, hours, minutes, and, ... Read More

Slice a PySpark DataFrame into Two Row-wise DataFrames

Tapas Kumar Ghosh
Updated on 17-Jul-2023 16:52:47

901 Views

PySpark dataframe is defined as a collection of distributed data that can be used in different machines and generate the structure data into a named column. The term slice is normally used to represent the partitioning of data. In Python, we have some built-in functions like limit(), collect(), exceptAll(), etc that can be used to slice a PySpark dataframe in two row-wise dataframe. Syntax The following syntax is used in the examples − limit() This is a built-in method in Python that can be used to set the range of rows by specifying the integer value. subtract() The ... Read More

Advertisements