Category: Tutorials

Machine Learning, Tutorials

Machine Learning with Python: K Means Clustering

Introduction K Means clustering is a popular machine learning algorithm used for grouping data points into distinct clusters based on their similarities. This powerful technique is widely used in various fields such as finance, marketing, biology and many more. K Means clustering is an unsupervised learning algorithm which means it doesn’t require the input data […]

Data Science, Machine Learning, Tutorials

Machine Learning with Python: K Nearest Neighbors

Introduction K Nearest Neighbors (KNN) is a popular supervised machine learning algorithm that has been widely used in a variety of fields, including marketing, healthcare, and image recognition. It is a simple yet powerful algorithm that belongs to the category of instance-based learning or lazy learning. The KNN algorithm can be applied both for classification […]

Python Basics, Tutorials

Tutorial: How to Skip a Value in a List in Python

Introduction Learning how to skip a value in a Python list is an important skill to have as it can help you write more efficient and effective code. Skipping values in lists can be done in several different ways, depending on the specific situation. Learning how to skip a value in a Python list is […]

Data Science, Tutorials

Analyzing Senate Stock Trades

    Analyzing Stock Market Activity of US Senators with Python¶ In 2012, a law called ” Stop Trading on Congressional Knowledge (STOCK) Act of 2012″ was passed, which prohibits the use of non-public information for private profit, including insider trading by members of Congress and other government employees. This law however did not completely […]

Data Science, Tutorials

Visualizing Prediction Markets with Kalshi and Python

    Visualizing Prediction Markets with Python and Kalshi¶ In this blog post we’ll explore Prediction Markets using Kalshi. What is Kalshi?¶ Kalshi is a predictions market, regulated by the Commodity Futures Trading Commission (CFTC) where you can buy event contracts based on future outcomes for certain events, such as the number of COVID cases […]

Python Basics, Tutorials

How to Convert A .py Script into A .exe File

Picture this: you’ve just finished creating a fantastic Python program and intend to let the world see it. You then send your friend a directory containing all your scripts and encourage them to try it out. Only first, they must install Python and then run the program via the IDLE shell or the command line. […]