Asif Rahaman has Published 58 Articles

How to break a line without using br tag in HTML / CSS?

Asif Rahaman

Asif Rahaman

Updated on 18-Sep-2024 12:33:13

4K+ Views

To break a line without using br tag in HTML/CSS, is useful where you want space between elements, but don't want to add a new line of text. In this article, we will be discussing two different approaches to break line without using br tag. We are having some textual ... Read More

How to center a <div> using the Flexbox property of CSS?

Asif Rahaman

Asif Rahaman

Updated on 09-Aug-2024 14:00:47

4K+ Views

To center a div using flexbox property of CSS, we will be using CSS flexbox and it's properties. In this article, We will understand and perform following three things to center a using the Flexbox property of CSS: Center div Using flexbox on ... Read More

How to center a <div> using CSS grid Property?

Asif Rahaman

Asif Rahaman

Updated on 09-Aug-2024 09:52:15

19K+ Views

To center a div using CSS grid property, we will be using CSS grid layout and it's properties. CSS grid is one of the most widely used elements in CSS which is similar to flexbox. CSS grids are two-dimensional layout systems on the web. We can place the elements in ... Read More

How to center a div within another div?

Asif Rahaman

Asif Rahaman

Updated on 26-Jun-2024 13:38:06

7K+ Views

To center a div is one of the most important aspects of front-end development. In this article, we will center a div inside another div using HTML and CSS. We will have a parent div which shall have the child div. Our task would be to place the child ... Read More

How to Use cbind in Python?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 15:11:55

591 Views

Python is a versatile programming language that offers programmers various modules and libraries to perform the required tasks. One such powerful function that Python offers is the “cbind”. This stands for column bind. The “cbind” is a powerful tool that allows programmers to combine, merge, and group the arrays, data ... Read More

How to Use axis=0 and axis=1 in Pandas?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 15:08:15

8K+ Views

As a programmer, when we need to deal with data, we may need to perform operations only in rows or columns, or both. In pandas, the axis refers to how a function or an operation is applied to the Data Frame or the series. Pandas only can take two values, ... Read More

How to use a List as a dictionary key in Python 3?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 15:05:20

189 Views

Dictionaries are among the most powerful data structures in Python programming languages. This is a data structure consisting of key-value pairs. It has several advantages; for example, accessing the values occurs in O(1) time complexity, it is memory efficient, easy to update, delete and iterate, and offers many built functions ... Read More

How to use a DataLoader in PyTorch?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 15:02:14

301 Views

PyTorch is a popular open-source machine-learning library. Data scientists, researchers, and developers use this library widely to develop AI/ML products. One of the most important features of PyTorch is the Data Loader class. This class helps to load and batch the data for neural network training efficiently. This article will ... Read More

How to Get the next key in Dictionary in Python?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 14:55:50

2K+ Views

Dictionaries are powerful data types of Python. It consists of key-value pairs. Operations like searching, appending, etc., can be done efficiently through this data type. While accessing values in a dictionary is straightforward, there may be situations where you need to find the next key in a dictionary. Python provides ... Read More

How to Get a sorted list of random integers with unique elements using Python?

Asif Rahaman

Asif Rahaman

Updated on 28-Jul-2023 14:51:57

331 Views

Generating random numbers is one of the most popular techniques in programming, statistics, machine learning models, etc. Generating a sorted list of random integers with unique elements is a subdomain of the task. However, computers are deterministic machines, so generating random numbers through our implementation is only sometimes a smart ... Read More

Advertisements