Pierian Blog

Python Basics

Tutorial: How to Convert String to Float in Python

Introduction As a Python programmer, dealing with data is a crucial aspect of your day-to-day work. However, as much as we strive to ensure the consistency and accuracy of our data sets, mishaps can occur when working with strings that must be converted to floats for further computation. The process of converting strings to floats […]

Python Basics

How to Convert a String to Bytes Using Python

Introduction In Python, strings and bytes are two distinct data types that are used to represent text and binary data respectively. Strings in Python are sequences of Unicode characters wrapped inside quotes (either single quotes or double quotes). They can contain any printable character including spaces, digits, and special symbols like punctuation marks. Bytes, on […]

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, Machine Learning, Python Basics

Machine Learning with Python: Linear Regression

Introduction In this blog post, we’ll be exploring Linear Regression in Machine Learning with Python.  There are many potential applications for linear regression, especially for your business, including: Sales forecasting: Linear regression can be used to predict future sales based on historical data, such as product pricing, marketing expenses, and consumer demographics. Inventory management: Linear […]

Data Science, Machine Learning

7 Regression Algorithms Used in Python for Machine Learning

Regression analysis is a commonly used statistical technique for predicting the relationship between a dependent variable and one or more independent variables. In the field of machine learning, regression algorithms are used to make predictions about continuous variables, such as housing prices, student scores, or medical outcomes. Python, being one of the most widely used […]

Data Science, Python Basics

Analyzing Taylor Swift’s Songs with Python

    Analyzing Taylor Swift’s Songs¶ To celebrate Taylor’s new album which has 10 of the top 10 Billboard charts (first time to ever happen), let’s explore Taylor’s discography with the Spotify API.     Get credentials from Spotify API¶ Go to your Spotify Dashboard at https://developer.spotify.com/dashboard/ and create a new application, then grab the […]

Data Science, Machine Learning

Self Supervised Learning

    Deep Learning without labels – Self-Supervised Learning¶     In this blog post we’ll discuss Self-Supervised Learning!     Classical supervised learning suffers from four main problems: Fully labelled datasets are expensive or not available at all. There is a large amount of unlabeled datasets which cannot be leveraged by Supervised Learning. Difficuly […]