Niharika Aitam has Published 168 Articles

How to check whether user's internet is on or off using Python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:40:38

7K+ Views

Generally, if you need to verify whether your current system is connected to the internet or not, we can do so, by simply sending request to any of webserver application using the browser or, using the dos command ping. The ping command is typically used to troubleshoot connectivity, reachability, ... Read More

How to click a href link from bootstrap tabs using Python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:32:55

121 Views

Bootstrap is the popular HTML, CSS, JavaScript framework which helps us to develop responsive, mobile first, front end web applications. It provides design templates for forms, typography, navigation, buttons and other interface components. Python is the best language to manipulate the web content. The Selenium Library If we need to ... Read More

How to clone webpage using pywebcopy in python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:31:44

1K+ Views

Python provides Pywebcopy module, that allows us to download and store the entire website including all the images, HTML pages and other files to our machine. In this module, we have one of the functions namely save_webpage() which allows us to clone the webpage. Installing pywebcopy module Firstly, ... Read More

How to communicate JSON data between Python and Node.js?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:30:11

456 Views

JSONĀ  can be abbreviated as JavaScript Object Notation. It is a text-based file used for transferring and storing data in programming languages. It is supported by the python programming language using a built-in package namely JSON, Its text is given in the quoted string format in which contains a ... Read More

How to combine Groupby and Multiple Aggregate Functions in Pandas?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:19:57

442 Views

The groupby() and aggregate() are the two functions available in the pandas library. The groupby() function The groupby() function allows you to group a DataFrame by one or more columns. It internally performs a combination of operations such as splitting the object, applying a function, and combining the results, ... Read More

How to Color Scatterplot by a variable in Matplotlib?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 15:17:15

2K+ Views

There are several ways to color scatterplot by a variable in Matplotlib of the python library. We have three parameters in scatter function namely cmap, alpha and c using which we can change the color of the plot. Matplotlib is one of the libraries available in python which is ... Read More

How to choose elements from the list with different probability using NumPy?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 14:55:24

707 Views

There are multiple ways to choose elements from the list with the different probability using the numpy library. In python, NumPy library provides a module named random, which has several functions such as choice(), multinomial() etc., which are used to choose elements from an array with different probabilities. The ... Read More

How to check whether the element of a given NumPy array is non-zero?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 14:53:33

111 Views

There are multiple ways to check whether the element of a given Numpy array is Non-zero. Here are few common ways that we can apply. Using Boolean indexing Boolean Indexing is a technique in Numpy library, that allows for the selection of specific elements from the array based on the ... Read More

How to check whether the day is a weekday or not using Pandas in Python?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 14:51:19

2K+ Views

The Python pandas library provides different functions to check whether the day is a weekday or not namely, weekday(), day_name(), isoweekday() etc., Pandas is an open source python library which is used for data manipulation, data analysis, data visualization, data structures etc. This library is widely used in data ... Read More

How to check whether specified values are present in NumPy array?

Niharika Aitam

Niharika Aitam

Updated on 09-Aug-2023 14:47:20

5K+ Views

We have different modules and functions available in python language to check whether specified values are present in the given Numpy array. Numpy is abbreviated as Numerical Python, which is a python library used to perform the mathematical, statistical and scientific calculations. The result of the numpy array is returned ... Read More

Previous 1 ... 6 7 8 9 10 ... 17 Next
Advertisements