Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Server Side Programming Articles
Page 103 of 2109
Get Confirmed, Recovered, Deaths cases of Corona around the globe using Python
The COVID-19 pandemic has impacted billions of lives worldwide, creating widespread concern among people. Several applications were built to track and analyze accurate information about deaths, recovered cases, and confirmed cases. Fetching and analyzing this information is crucial for developers building pandemic-related applications. In this article, we will explore three different methods to retrieve statistical data about COVID-19 cases using Python. Method 1: Using APIs APIs (Application Programming Interfaces) enable software applications to interact with each other by defining protocols for data exchange and functionality access. Web APIs, often based on HTTP, allow developers to access data and ...
Read MoreLinked list using dstructure library in Python
The Dstructure library in Python provides efficient tools for implementing various data structures including linked lists. This library simplifies the creation and manipulation of linked lists with easy-to-use methods for common operations. We'll explore how to create and work with linked lists using the Python Dstructure library, covering essential operations from basic creation to advanced manipulations. What is a Linked List? A linked list is a linear data structure where elements are not stored in consecutive memory locations. Instead, each node contains data and a pointer to the next node. This structure allows for dynamic memory allocation ...
Read Morelinecache.getline() in Python
The linecache module in Python provides an efficient way to read specific lines from files. The linecache.getline() function retrieves a single line from any file while automatically handling caching for improved performance on subsequent reads. Syntax linecache.getline(filename, lineno, module_globals=None) Parameters filename − Path to the file to read from lineno − Line number to retrieve (1-based indexing) module_globals − Optional global namespace for module files Basic Example Let's create a simple text file and retrieve a specific line ? import linecache # Create sample content (simulating test.txt) ...
Read MoreLinear Search Visualizer using PyQt5
Understanding data structures and algorithms is essential for any prospective programmer because they are the foundation of computer science. Visualizing these concepts can significantly aid understanding. This article demonstrates how to create a linear search visualizer using Python's PyQt5 library with step-by-step animation of the search process. Introduction to PyQt5 PyQt5 is a comprehensive set of Python bindings for Qt libraries that enables building complex and feature-rich GUI applications. It is highly versatile and works across various operating systems, making it ideal for creating interactive visualizations. Understanding Linear Search Linear search is a straightforward algorithm for ...
Read MoreLinear Regression using Turicreate
Linear regression is the foundation of predictive modeling that every data scientist must understand. TuriCreate, Apple's machine learning toolkit, provides a simple and scalable way to implement linear regression in Python. This article demonstrates how to use TuriCreate for linear regression with practical examples. What is Linear Regression? Linear regression is a predictive modeling technique used to forecast the value of a dependent variable (target) based on one or more independent variables (features). It establishes a linear relationship between variables to make predictions. Introduction to TuriCreate TuriCreate is Apple's machine learning framework designed to simplify model ...
Read MoreFinding the Last business day of Every Month in a Year using Python
Business days are known as working days in the corporate sector. In some sectors, business days are Monday to Friday, while in others they include Monday to Saturday. In this article, we will understand how to find the last business day of every month in a year using Python. Python offers various libraries like datetime, time, and calendar to handle time operations. Additionally, libraries like Pandas provide built-in methods to support such time operations. Using the datetime and calendar Modules The datetime and calendar are standard Python modules for handling time operations. They offer several utility functions to ...
Read MoreLine Chart using Plotly in Python
Plotly is an interactive, open-source toolkit that enables users to build a wide range of aesthetically pleasing and intelligent charts for data visualization in Python. The line chart, one of the most popular chart forms, is the subject of this article. We'll explore how to create line charts using Plotly with practical examples. Plotly is a flexible library that supports a wide range of chart styles, offering countless opportunities to tell engaging stories with data. A Brief Overview of Plotly Plotly is a powerful Python library that supports interactive and browser-based graph generation. You can create complex ...
Read MoreLine chart in Pygal
Pygal stands out among the different Python data visualisation tools. The SVG (Scalable Vector Graphics) outputs from Pygal strike an excellent balance between elegance and customization. This article is devoted to building line charts in Pygal and includes pertinent examples to aid with comprehension. The development of line charts is the main emphasis of this guide, however Pygal has many other features and a wide range of chart styles to meet a variety of data visualisation requirements. Pygal: A Quick Recap An open-source Python package called Pygal is used to produce stunning SVG charts that are both ...
Read MoreLimited rows selection with given column in Pandas
Pandas is the go-to library for data manipulation in Python. One common task is selecting a limited number of rows from specific columns in a DataFrame. This article demonstrates various methods to accomplish this with practical examples. What is Row and Column Selection? Row and column selection allows you to extract subsets of your DataFrame based on position, labels, or conditions. This is essential for data analysis, preprocessing, and creating focused views of your data. Method 1: Using iloc for Position-Based Selection The iloc method selects rows and columns by their integer positions. It's useful when ...
Read MoreLike instagram pictures using Selenium and Python
With over a billion users, Instagram is a popular social media platform. While it provides APIs for certain interactions, developers often use web automation tools like Selenium to interact with Instagram programmatically. This article demonstrates how to automate liking Instagram pictures using Python and Selenium. Important: This tutorial is for educational purposes only. Always respect Instagram's terms of service and avoid spam-like behavior that could result in account restrictions. Prerequisites and Setup Before starting, you need Python and Selenium installed on your system. Install Selenium using pip ? pip install selenium You'll also ...
Read More