Articles on Trending Technologies

Technical articles with clear explanations and examples

How to generate random values based on assigned probability in Excel?

Namita Aggarwal
Namita Aggarwal
Updated on 28-Aug-2023 2K+ Views

In this article, the user will understand how to generate the random data value based on assigned probability in MS Excel. One example is depicted where two simple formulas are used to generate the required results. Random data would be used in multiple experiments and studies, and to analyze the available trends and patterns. For this article, the focus is to generate random values based on an assigned probability. Example 1: To generate random value based on the assigned probability in Excel by using the user-defined formula Step 1 Consider the data set as shown below image: ...

Read More

How to put a border around a Frame in Python Tkinter?

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 28-Aug-2023 37K+ Views

To put a border around a Frame in Tkinter, we have to use the highlightbackground and highlightthickeness parameters while creating the Frame. Let's take an example and see how to use these two parameters.Steps −Import the tkinter library and create an instance of tkinter frame.Set the size of the frame using geometry() method.Create a frame with Frame() method. Highlight the border of the frame with a color, highlightbackground="blue". Then, set the thickness of the border, highlightthickness=2.Next, create some widgets inside the frame. In the example, we have placed four checkbuttons and a button inside the frame.Finally, run the mainloop of ...

Read More

How to create an Edit icon using jQuery Mobile

Aman Gupta
Aman Gupta
Updated on 28-Aug-2023 316 Views

Overview The jQuery mobile provides many icons packs which we can access using as a value in the data−icon attribute. As all these icons are used as the buttons so by using the basic HTML button we can use the data−icon attribute. The jQuery mobile provides responsive user interface content to the web pages with the attractive icons. Instead of using the HTML button tag we can also use the HTML anchor tag and set the attribute data role as button so the anchor tag will behave like a button and after this we will use the data icon attribute ...

Read More

How to create a dynamic HTML pages

Aman Gupta
Aman Gupta
Updated on 28-Aug-2023 6K+ Views

Overview Nowadays most of the pages are dynamic in nature, the dynamic page means that it changes the content with respect to the user. Dynamic pages cannot be built by simply HTML and CSS because it will provide the page static nature only, so to make the web page dynamic we have to use the scripting language such as javascript or jQuery. We can make the page dynamic in many ways such as when a user enters his credentials to the page he can retrieve the information regarding his credentials. The dynamic page also represents those web pages which can ...

Read More

How to create a Drawing Effect Animation using CSS

Aman Gupta
Aman Gupta
Updated on 28-Aug-2023 869 Views

Overview Cascading Styles Sheet (CSS) animation provides the HTML element a movement on the page. To achieve the drawing effect animation we need to have prior knowledge on the HTML svg element, path element and for CSS we should have knowledge on the animation and keyframe properties. As the svg element provides a space to build a custom image which can be inserted using the element. So to make the drawing animation we should have the knowledge to build the svg strokes. The svg path element has the following point data to build the strokes these data points are: ...

Read More

Difference between Packets and Frames

Pradeep Kumar
Pradeep Kumar
Updated on 28-Aug-2023 1K+ Views

A packet is a data unit created in the network layer. A frame is a data unit created in the data link layer. A packet is created first followed by the Frame. Both of them consists of data that is being transferred. What are Packets? A packet is a small fraction of data that is transmitted between the systems through internet. During data transfer, the entire data is not sent as a single unit over the network. The data to be transferred is broken down into multiple segments called packets. Transferring data in small packets increases the speed of data ...

Read More

Difference between Native App and Hybrid App

Pradeep Kumar
Pradeep Kumar
Updated on 28-Aug-2023 445 Views

Mobile applications have become a crucial aspect of our life in the current digital era. We rely significantly on mobile apps for our daily duties, from placing food orders to reserving rides. There are two main alternatives when it comes to creating a mobile app: Native Apps and Hybrid Apps. Native apps are created using programming languages like Swift or Java for specific platforms like iOS or Android. Yet, Hybrid Apps can operate on various platforms, thanks to a native container and are created using web technologies like HTML, CSS, and JavaScript. What is a Native App? A mobile ...

Read More

Python program to get first and last elements from a tuple

Harshit Sachan
Harshit Sachan
Updated on 27-Aug-2023 33K+ Views

Tuples are an important data type in Python and are often used to store a fixed set of elements. In this article, we will be discussing how to extract the first and last elements from a tuple in Python. We will go over the syntax for accessing these elements and will provide examples of how to do so. What is a Tuple in Python? Tuples allow for the storage of several things in a single variable. One of python’s four built-in data types for storing data collections is the tuple. Unchangeable and ordered collections are called tuples. Round brackets are ...

Read More

How to sum values of a Python dictionary?

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 27-Aug-2023 32K+ Views

It is pretty easy to get the sum of values of a Python dictionary. You can first get the values in a list using the dict.values(). Then you can call the sum method to get the sum of these values. exampled = {    'foo': 10,    'bar': 20,    'baz': 30 } print(sum(d.values()))OutputThis will give the output −60

Read More

Python Pandas – Find the maximum value of a column and return its corresponding row values

Rishikesh Kumar Rishi
Rishikesh Kumar Rishi
Updated on 27-Aug-2023 30K+ Views

To find the maximum value of a column and to return its corresponding row values in Pandas, we can use df.loc[df[col].idxmax()]. Let's take an example to understand it better.StepsCreate a two-dimensional, size-mutable, potentially heterogeneous tabular data, df.Print the input DataFrame, df.Initialize a variable, col, to find the maximum value of that column.Find the maximum value and its corresponding row, using df.loc[df[col].idxmax()]Print the Step 4 output.Exampleimport pandas as pd df = pd.DataFrame(    {       "x": [5, 2, 7, 0],       "y": [4, 7, 5, 1],       "z": [9, 3, 5, 1]    } ...

Read More
Showing 17251–17260 of 61,248 articles
Advertisements