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
Articles by Atharva Shah
Page 2 of 6
Flipping Tiles (memory game) using Python3
Welcome to this blog post where we will be discussing the implementation of a fun game called Flip! using Python. Flip! is a game that involves flipping over tiles on a 4x4 grid to reveal their color. The objective of the game is to flip over all the tiles while making as few moves as possible. In this post, we will go through the implementation of the game using Python and explain the different components of the code. Syntax The following packages are used in this code − itertools − This package provides functions to iterate over collections in ...
Read MoreFlipkart Reviews Sentiment Analysis using Python
One of the biggest online markets in India is Flipkart, where shoppers can buy everything from gadgets to apparel. Any commercial service must examine the tone of the evaluations in order to enhance their services as a result of the growing number of consumers and their feedback. To detect whether a text exhibits a positive, negative, or neutral attitude, Sentiment Analysis is a Natural Language Processing approach which we will be examining using Python to conduct sentiment analysis on product reviews in this technical blog. Installation and Syntax To perform sentiment analysis on Flipkart reviews, we will need to install ...
Read MoreFlipkart Product Price Tracker using Python
Flipkart, one of India's biggest online retailers, offers a variety of products at competitive costs, yet it may be difficult to manually monitor pricing due to Flipkart's rapid price fluctuations in response to discounts and offers. This step-by-step tutorial will teach you how to build a Python Flipkart product price tracker that will allow you to locate reasonable sales pricing and follow price changes in the background. Syntax To build a Flipkart product price tracker using Python, we need to install the following modules − requests − to fetch the webpage of the product BeautifulSoup − to parse the ...
Read MoreFlattening JSON objects in Python
JSON (JavaScript Object Notation) is a lightweight data interchange format. It is extensively used in web applications for transmitting data between the server and the client. JSON data often comes in a nested format, which can be difficult to manipulate. Flattening JSON objects involves converting complex hierarchical JSON structures to simpler structures. This process is often required when analyzing JSON data or transforming it into a different format. In this blog post, we will explore the process of flattening JSON objects in Python. Syntax Python has a built-in JSON module that provides functions to encode and decode JSON data. data= ...
Read MoreFlask project – Create a Joke App with PyJokes
Flask is an incredible choice in the event that you're a Python engineer needing to fabricate a web application. It is a lightweight web framework that is easy to use and understand. Using PyJokes, a Python package with a large number of jokes, we'll show you how to use Flask to create an amusing and interactive joke app in this article. Installation and Syntax To get started with our Flask news application, we need to first install Flask and the pyjokes library which will fetch jokes for us randomly pip install pyjokes flask Before we dive into the implementation ...
Read MoreFlask NEWS Application Using Newsapi
Python developers may create tiny to medium-sized web apps using the well-liked Flask web framework. It is easy to operate and lightweight. This project showcases the use of the News API, a well-known API for gathering news headlines and stories from many sources, to build a straightforward news application. Installation and Syntax To get started with our Flask news application, we need to first install Flask and the News API library. We can install Flask using pip, which is a package installer for Python. We can then install the News API library using the following command − pip install newsapi-python ...
Read MoreFinding the Quantile and Decile Ranks of a Pandas DataFrame column
Quantile and decile ranks are commonly used statistical measures to determine the position of an observation in a dataset relative to the rest of the dataset. In this technical blog, we will explore how to find the quantile and decile ranks of a Pandas DataFrame column in Python. Installation and Syntax pip install pandas The syntax for finding the quantile and decile ranks of a Pandas DataFrame column is as follows − # For finding quantile rank df['column_name'].rank(pct=True) # For finding decile rank df['column_name'].rank(pct=True, method='nearest', bins=10) Algorithm Load the data into a Pandas DataFrame. Select the ...
Read MoreFinding the outlier points from Matplotlib
Outliers, or data points that are markedly different from other observations, are frequently encountered in data analysis. To prevent them from skewing the outcomes of statistical analysis, it is essential to recognise and handle these outliers. We will look at finding the outlier points from Matplotlib, a well-known Python data visualization library, in this technical blog post. Installation and Syntax The popular Python module Matplotlib is used to build static, animated, and interactive visualizations. Pip, a Python package installer, may be used to install it. Run the following line in your terminal to install Matplotlib − pip install matplotlib ...
Read MoreFinding the largest file in a directory using Python
Finding the largest file may be helpful in a number of circumstances, including locating the biggest files on a hard drive to make room for smaller ones or examining the size distribution of files in a directory. The biggest file in a directory may be found using a Python script, which will be covered in this article. Algorithm Import the os module. Define a function called find_largest_file that takes a directory as input. Initialize a variable called largest_file to None and a variable called largest_size to 0. Use os.walk to traverse the directory tree recursively, starting from the root ...
Read MoreFinding the k smallest values of a NumPy array
Finding the k smallest values of a NumPy arra Installation and Syntax Pip, Python's package installer, is often used to install NumPy. pip install numpy The following function may be used to identify the k NumPy array elements with the smallest values − np.sort(array)[:k] This returns the first k items of the sorted array after sorting it in ascending order. The array may be be sorted using the alternative syntax shown below, which will retrieve the last k entries and sort the array in descending order − np.sort(array)[::-1][:k] Algorithm The algorithm for finding the k smallest ...
Read More