Python Archives - CodeSpeedy Coding solutions - PHP, Java, JS, Python Wed, 15 Jan 2025 13:31:28 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.5 https://www.codespeedy.com/wp-content/uploads/2023/07/cropped-codespeedy-favicon-icon-32x32.png Python Archives - CodeSpeedy 32 32 Detect image similarity between two images in Python – Machine Learning https://www.codespeedy.com/detect-image-similarity-between-two-images-in-python-machine-learning/ https://www.codespeedy.com/detect-image-similarity-between-two-images-in-python-machine-learning/#respond Wed, 15 Jan 2025 13:31:28 +0000 https://www.codespeedy.com/?p=115010 Do you know how Facebook can detect faces in your pictures or Google find similar pictures? Today I am going to show you one powerful method for image comparison by artificial intelligence with deep learning. Do not be concerned if you are a tech geek. I’ll write this code out for you with as little complexity as possible but will make it still do all the heavy lifting behind the scenes. What Are We Building? We are making a program that can look at two images and tell us how similar they are. Think of it like having a smart assistant that can tell you, “These two photos […]

The post Detect image similarity between two images in Python – Machine Learning appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/detect-image-similarity-between-two-images-in-python-machine-learning/feed/ 0
Detect text on an image in Python https://www.codespeedy.com/detect-text-on-an-image-in-python/ https://www.codespeedy.com/detect-text-on-an-image-in-python/#respond Wed, 15 Jan 2025 13:31:28 +0000 https://www.codespeedy.com/?p=115014 Ever had a need to copy text from an image and found yourself re-typing it? In this tutorial, I will show you how to extract text from images automatically using Python and Optical Character Recognition. Perfect for digitizing documents, automating data entry, or processing scanned materials. What We’ll Build We will write a Python script […]

The post Detect text on an image in Python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/detect-text-on-an-image-in-python/feed/ 0
Add formula to cell in Excel – Python Pandas https://www.codespeedy.com/add-formula-to-cell-in-excel-python-pandas/ https://www.codespeedy.com/add-formula-to-cell-in-excel-python-pandas/#respond Sun, 05 Jan 2025 04:34:57 +0000 https://www.codespeedy.com/?p=114999 Are you tired of manually calculating your business numbers at the end of each month? I’ve created a simple tool that does the heavy lifting for you, giving you instant insights into your financial data. What Does This Tool Do? This automation takes your Excel spreadsheet and instantly calculates five key metrics: Total Sum: The […]

The post Add formula to cell in Excel – Python Pandas appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/add-formula-to-cell-in-excel-python-pandas/feed/ 0
Detect text from the screen and click on it in Python programming https://www.codespeedy.com/detect-text-from-the-screen-and-click-on-it/ https://www.codespeedy.com/detect-text-from-the-screen-and-click-on-it/#respond Thu, 19 Sep 2024 04:44:42 +0000 https://www.codespeedy.com/?p=114859 In this tutorial, I will show you how to detect text on the screen and then click on it with the help of Python programming. For example, you may want to click on an anchor link on a website and detect that link by its text. So, let’s see how to perform it. To detect […]

The post Detect text from the screen and click on it in Python programming appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/detect-text-from-the-screen-and-click-on-it/feed/ 0
Convert Markdown (.md) to HTML using Python https://www.codespeedy.com/convert-markdown-to-html-using-python/ https://www.codespeedy.com/convert-markdown-to-html-using-python/#respond Wed, 18 Sep 2024 15:36:59 +0000 https://www.codespeedy.com/?p=114854 In this tutorial, I will show you how to convert markdown to HTML using Python with just a few lines of code. The Python package that I am going to use is: markdown. I want to make this tutorial clean and simple so I will first show you with a simple input and output. At […]

The post Convert Markdown (.md) to HTML using Python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/convert-markdown-to-html-using-python/feed/ 0
How to plot Line of Best fit in python https://www.codespeedy.com/__trashed-2/ https://www.codespeedy.com/__trashed-2/#respond Tue, 10 Sep 2024 19:57:52 +0000 https://www.codespeedy.com/?p=114626 First, we will import  libraries import numpy as np import matplotlib.pyplot as plt Then we will create data points #Create data points x = np.array([0, 1, 2, 3, 4, 5]) y = np.array([1, 3, 2, 5, 7, 8]) Best fit line equation y = mx+b, by using np.  polyfit we will calculate coefficients ( m,b), […]

The post How to plot Line of Best fit in python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/__trashed-2/feed/ 0
Company name matching from csv with matching score – Python https://www.codespeedy.com/company-name-matching-from-csv-with-matching-score-python/ https://www.codespeedy.com/company-name-matching-from-csv-with-matching-score-python/#respond Wed, 14 Aug 2024 07:29:48 +0000 https://www.codespeedy.com/?p=114687 Well, finally I have come up with a solution of matching company names using Python. This time, we are going to match company names from two CSV datasets even if the company names are misspelled or inaccurate. We can’t do this using simple string operations. So we need strong mathematical calculations to do this. Thanks […]

The post Company name matching from csv with matching score – Python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/company-name-matching-from-csv-with-matching-score-python/feed/ 0
Get official URL of any company using Python https://www.codespeedy.com/get-official-url-of-any-company-using-python/ https://www.codespeedy.com/get-official-url-of-any-company-using-python/#respond Sat, 10 Aug 2024 16:33:40 +0000 https://www.codespeedy.com/?p=114664 In this tutorial, I will show you how to fetch or get the URL of official website of any company using Python. We will use beautifulsoup and requests module to do this. Logic behind this: We will first make a Google search for a specific keyword ( here its the company name ) through Beautifulsoup […]

The post Get official URL of any company using Python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/get-official-url-of-any-company-using-python/feed/ 0
How to calculate and plot the Normal CDF in Python https://www.codespeedy.com/how-to-calculate-and-plot-the-normal-cdf-in-python/ https://www.codespeedy.com/how-to-calculate-and-plot-the-normal-cdf-in-python/#respond Sat, 10 Aug 2024 16:16:47 +0000 https://www.codespeedy.com/?p=114621 First, we will import some libraries numpy, scipy, and Matplotlib. numpy for numerical operations,scipy. stats for statistical functions and matplot for plotting the plot. import numpy as np from scipy import stats import matplotlib.pyplot as plt then we will define a range of x and calculate cdf using stats. norm.cdf How stats. norm.cdf work- The […]

The post How to calculate and plot the Normal CDF in Python appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/how-to-calculate-and-plot-the-normal-cdf-in-python/feed/ 0
Make Python Dictionary keys Case insensitive – CaseInsensitiveDict https://www.codespeedy.com/make-python-dictionary-keys-case-insensitive-caseinsensitivedict/ https://www.codespeedy.com/make-python-dictionary-keys-case-insensitive-caseinsensitivedict/#respond Thu, 01 Aug 2024 15:29:47 +0000 https://www.codespeedy.com/?p=114603 Today, I found a cool thing in Python. Actually, this function is a part of requests module. Using CaseInsensitiveDict of requests module, we can easily make our dictionary to be case insensitive. Let’s understand this through an example. myDict = { "Name": "Saruk", "Working-at": "codespeedy", "Born-In": "India" } print(myDict["working-at"]) If we run this we will […]

The post Make Python Dictionary keys Case insensitive – CaseInsensitiveDict appeared first on CodeSpeedy.

]]>
https://www.codespeedy.com/make-python-dictionary-keys-case-insensitive-caseinsensitivedict/feed/ 0