Found 26504 Articles for Server Side Programming

Golang Program to Create an Interface Named Writer that Defines a Write Method

Akhil Sharma
Updated on 13-Jul-2023 23:07:58

145 Views

In this Golang article we will learn to create an interface named writer that defines a write method write method for file type as well as writer interface and filet type. Syntax data := []byte("Hello, World!") It is used to declare a byte slice in go language. data : it is a variable declaration for a var named data. []byte: the type of variable “data” as a byte slice. ... Read More

Golang Program to Create Filter for the Employees Based on their Salary

Akhil Sharma
Updated on 13-Jul-2023 23:03:25

184 Views

It is important to have the knowledge of filters while working on data sets in go language because there may be cases where you want to analyze data to get customized results. In this article we are going to create a filter on the employee list based on the salary using traditional looping method, functions approach as well as using goroutines. Example 1 In the code given below “FilterEmployeeBySallary()” filters the list of employee based on a salary range and returns the list of employee that falls in that salary range. package main import "fmt" type Employee struct ... Read More

Golang program to create filter for the Employees

Akhil Sharma
Updated on 14-Jul-2023 15:55:13

746 Views

Go Language allows you to apply a filter on particular data for analyzing specified data, work on a particular property of data, data integration and more.In this article we are going to write a program to create a filter for the employees, using iterative filtering, functional filtering, as well as using go language built in filtering function. Syntax filtered := funk.Filter(collection, func(item Type) bool {…}) collection = It is the original collection to filter. This function takes two arguments, a collection and a filtering function. Algorithm Make ... Read More

Highlight the maximum value in each column in Pandas

Priya Mishra
Updated on 24-Jul-2023 18:34:31

2K+ Views

In data analysis and exploration tasks, identifying the maximum values within each column of a Pandas DataFrame is crucial for gaining insights and understanding the data. Python's Pandas library provides various techniques to highlight these maximum values, making them visually distinguishable. By applying these techniques, analysts can quickly spot and focus on the highest values, facilitating decision-making processes and uncovering key trends. This article explores different methods, ranging from built-in functions to custom approaches, enabling users to highlight maximum values effortlessly within their data using Pandas. How to highlight the maximum value in each column in Pandas? Pandas, a ... Read More

Application to get address details from zip code Using Python

Priya Mishra
Updated on 24-Jul-2023 18:21:55

957 Views

In today's digital world, obtaining accurate address details using zip code is crucial for various applications and this can easily be done using python libraries and modules. In this article, we explore how to create a Python application that retrieves address information based on a zip code. Leveraging the power of geocoding and the Python programming language, we'll develop a user-friendly interface using the Tkinter library. By integrating the Nominatim geocoder class from the geopy module, we can effortlessly fetch comprehensive address details, including the street, city, and state, using a simple zip code lookup Nominatim class from the geopy.geocoders ... Read More

Application for Internet speed test using pyspeedtest in Python

Priya Mishra
Updated on 24-Jul-2023 18:09:11

6K+ Views

We can create a Python application using the pyspeedtest library to assess and evaluate the efficiency of our internet connection. This application allows us to perform instantaneous speed tests with minimal code, offering valuable information regarding our download and upload speeds. In this article, we will delve into the process of constructing an internet speed test application using pyspeedtest in Python. pyspeedtest Pyspeedtest is a Python library that facilitates internet speed testing. It provides a convenient way to measure the download and upload speeds of an internet connection programmatically. With pyspeedtest, developers can incorporate speed testing capabilities into their ... Read More

Animated Data Visualization using Plotly Express

Priya Mishra
Updated on 24-Jul-2023 18:04:07

365 Views

Animated data visualization is now an essential tool for data analysis, as it provides a clear and dynamic way to explore trends and patterns over time, this can be done with the help of a Python library known as Plotly Express, which is used to create these visualizations easily and intuitively and also provides a high-level interface for creating interactive plots. In this article, we will be discussing how to perform Animated data visualization using Plotly Express. The Power of Animation in Data Visualization Animated data visualization takes storytelling with data to a whole new level. By adding motion ... Read More

Analyzing selling price of used cars using Python

Priya Mishra
Updated on 24-Jul-2023 17:55:29

704 Views

Analyzing the selling price of used cars is crucial for both buyers and sellers to make informed decisions which can easily be done using Python. By leveraging Python's data analysis and visualization capabilities, valuable insights can be gained from the available dataset. This article explores the process of data preprocessing, cleaning, and analyzing the selling price using various plots. Additionally, it covers predicting the selling price using a Linear Regression model. With Python's powerful libraries such as pandas, matplotlib, seaborn, and scikit-learn, this analysis provides a comprehensive approach to understanding the factors influencing used car prices and making accurate price ... Read More

Golang Program to Create Two Goroutines

Akhil Sharma
Updated on 13-Jul-2023 22:39:39

270 Views

When working with go language there may be instances where you need to create two goroutines for parallel processing, asynchronous operations and more. In this go language article we will explore how to create two goroutines using anonymous functions, named functions as well as using function calls.In golanguage a goroutine is an independent concurrent function, it enables concurrent programming by allowing the functions to run concurrently. Syntax time.Sleep(duration) It is a built-in go language function used to pause the execution of a program. It ... Read More

Golang Program to Creates a Unidirectional Sending Channel and Passes it to a Function that Returns a Unidirectional Receiving Channel

Akhil Sharma
Updated on 13-Jul-2023 22:35:50

156 Views

A unidirectional sending channel is used to send the values to the channel, while the unidirectional receiving channel is used to receive the data from the channel. These channels are used in concurrent data processing, data sharing and more. In this golang article we are going to create a program to create a unidirectional sending and pass it to a function that returns a unidirectional receiving channel using function parameters, type conversion as well as channel composition. Algorithm Define the sender Function that accepts a send-only channel named “ch” of type integer. ... Read More

Advertisements