[Explaining] Numpy and PyPlot

NumPy is a foundational library for data science in Python. It excels at handling multidimensional arrays and matrices, along with offering a rich collection of mathematical functions to operate on this data. This makes NumPy a powerful tool for data manipulation, calculations, and extracting insights from raw data efficiently. Because of its capabilities, NumPy even serves as the underlying foundation for other popular data science libraries like Pandas. In order to brightest the insights that comes from the insights of NumPy, in this post I’ll combine it with matplotlib - the graphical library that adding the ability to create a useful plots, histograms and another graphical schemes....

May 25, 2024 · 5 min

Introduction to Data Types and Lists

In Python, data types are fundamental building blocks that define the kind of information a variable can hold and the operations that can be performed on it. These types act like labels, dictating how the data is stored in memory and what functions or operations are applicable. Understanding data types is essential for writing effective and efficient Python programs, as they directly influence how your code manipulates and processes information....

May 13, 2024 · 5 min

Web Scraping With Selenium

This tutorial is going to teach you how to scraping data with Selenium under Python environment. What is Selenium? Selenium is an open-source suite of tools used for automating tasks in web browsers. It’s like a remote control for your web browser, allowing you to write scripts that can perform actions and interact with websites just like a human user would. This makes it a valuable tool for several purposes:...

April 29, 2024 · 8 min

Leetcode 1 - Twosum

On the first Leetcode question we need to achieve a target number by summing numbers from known list. We can solve this problem in two ways: brute force, which tries all combinations, or by using a dictionary for a more efficient lookup. Brute force - the easiest solution- but where’s the efficiency? I have a confession: most of the time, I prefer brute force code. It’s simpler and has a Soviet-era feel to it....

April 15, 2024 · 2 min

Leetcode 709 - To Lower Case

I recently started my master degree in data science with emphasis on machine learning, in order to training on my python skills I’m solving Leetcode challenges. In problem 709 we’re asking to replace every uppercase letter with the same lowercase letter. Basically, there’s two different ways to resolve this issue: Using The ‘Lower’ Method (the easiest solution) By using .lower we can convert every uppercase letter into lowercase: 1 2 3 class Solution: def toLowerCase(self, s: str) -> str: return s....

February 6, 2024 · 1 min