Python Practice Problems: Parsing CSV Files

Day,MxT,MnT,AvT,AvDP,1HrP TPcpn,PDir,AvSp,Dir,MxS,SkyC,MxR,Mn,R AvSLP 1,88,59,74,53.8,0,280,9.6,270,17,1.6,93,23,1004.5 2,79,63,71,46.5,0,330,8.7,340,23,3.3,70,28,1004.5 3,77,55,66,39.6,0,350,5,350,9,2.8,59,24,1016.8 4,77,59,68,51.1,0,110,9.1,130,12,8.6,62,40,1021.1 5,90,66,78,68.3,0,220,8.3,260,12,6.9,84,55,1014.4 6,81,61,71,63.7,0,30,6.2,30,13,9.7,93,60,1012.7 7,73,57,65,53,0,50,9.5,50,17,5.3,90,48,1021.8 8,75,54,65,50,0,160,4.2,150,10,2.6,93,41,1026.3 9,86,32,59,61.5,0,240,7.6,220,12,6,78,46,1018.6 10,84,64,74,57.5,0,210,6.6,50,9,3.4,84,40,1019 11,91,59,75,66.3,0,250,7.1,230,12,2.5,93,45,1012.6 12,88,73,81,68.7,0,250,8.1,270,21,7.9,94,51,1007 13,70,59,65,55,0,150,3,150,8,10,83,59,1012.6 14,61,59,60,55.9,0,60,6.7,80,9,10,93,87,1008.6 15,64,55,60,54.9,0,40,4.3,200,7,9.6,96,70,1006.1 16,79,59,69,56.7,0,250,7.6,240,21,7.8,87,44,1007 17,81,57,69,51.7,0,260,9.1,270,29,5.2,90,34,1012.5 18,82,52,67,52.6,0,230,4,190,12,5,93,34,1021.3 19,81,61,71,58.9,0,250,5.2,230,12,5.3,87,44,1028.5 20,84,57,71,58.9,0,150,6.3,160,13,3.6,90,43,1032.5 21,86,59,73,57.7,0,240,6.1,250,12,1,87,35,1030.7 22,90,64,77,61.1,0,250,6.4,230,9,0.2,78,38,1026.4 23,90,68,79,63.1,0,240,8.3,230,12,0.2,68,42,1021.3 24,90,77,84,67.5,0,350,8.5,10,14,6.9,74,48,1018.2 25,90,72,81,61.3,0,190,4.9,230,9,5.6,81,29,1019.6 26,97,64,81,70.4,0,50,5.1,200,12,4,107,45,1014.9 27,91,72,82,69.7,0,250,12.1,230,17,7.1,90,47,1009 28,84,68,76,65.6,0,280,7.6,340,16,7,100,51,1011 29,88,66,77,59.7,0,40,5.4,20,9,5.3,84,33,1020.6 30,90,45,68,63.6,0,240,6,220,17,4.8,200,41,1022.7    

Read more

The k-Nearest Neighbors (kNN) Algorithm in Python

In this tutorial, you’ll get a thorough introduction to the k-Nearest Neighbors (kNN) algorithm in Python. The kNN algorithm is one of the most famous machine learning algorithms and an absolute must-have in your machine learning toolbox. Python is the go-to programming language for machine learning, so what better way to discover kNN than with Python’s famous packages NumPy and scikit-learn! Below, you’ll explore the kNN algorithm both in theory and in practice. While many tutorials skip the theoretical part […]

Read more

Matplotlib: Plot Multiple Line Plots On Same and Different Scales

Introduction Matplotlib is one of the most widely used data visualization libraries in Python. From simple to complex visualizations, it’s the go-to library for most. In this tutorial, we’ll take a look at how to plot multiple line plots in Matplotlib – on the same Axes or Figure. If you’d like to read more about plotting line plots in general, as well as customizing them, make sure to read our guide on Plotting Lines Plots with Matplotlib. Plot Multiple Line […]

Read more

Matplotlib Pie Chart – Tutorial and Examples

Introduction There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility – it’s able to create both simple and complex plots with little code. You can also customize the plots in a variety of ways. In this tutorial, we’ll cover how to plot a Pie Chart in Matplotlib. Pie charts represent data broken down into categories/labels. They’re an intuitive and simple […]

Read more

Matplotlib Scatter Plot with Distribution Plots (Joint Plot) – Tutorial and Examples

Introduction There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility – it’s able to create both simple and complex plots with little code. You can also customize the plots in a variety of ways. In this tutorial, we’ll cover how to plot a Joint Plot in Matplotlib which consists of a Scatter Plot and multiple Distribution Plots on the same […]

Read more

Matplotlib Stack Plot – Tutorial and Examples

Introduction There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to its reliability and utility – it’s able to create both simple and complex plots with little code. You can also customize the plots in a variety of ways. In this tutorial, we’ll cover how to plot Stack Plots in Matplotlib. Stack Plots are used to plot linear data, in a vertical order, stacking each […]

Read more

Matplotlib: Draw Vertical Lines on Plot

Introduction Matplotlib is one of the most widely used data visualization libraries in Python. Much of Matplotlib’s popularity comes from its customization options – you can tweak just about any element from its hierarchy of objects. In this tutorial, we’ll take a look at how to draw a vertical line on a Matplotlib plot, that allows us to mark and highlight certain regions of the plot, without zooming or changing the axis range. Creating a Plot Let’s first create a […]

Read more

Python AI: How to Build a Neural Network & Make Predictions

If you’re just starting out in the artificial intelligence (AI) world, then Python is a great language to learn since most of the tools are built using it. Deep learning is a technique used to make predictions using data, and it heavily relies on neural networks. Today, you’ll learn how to build a neural network from scratch. In a production setting, you would use a deep learning framework like TensorFlow or PyTorch instead of building your own neural network. That […]

Read more

Seaborn Line Plot – Tutorial and Examples

Introduction Seaborn is one of the most widely used data visualization libraries in Python, as an extension to Matplotlib. It offers a simple, intuitive, yet highly customizable API for data visualization. In this tutorial, we’ll take a look at how to plot a Line Plot in Seaborn – one of the most basic types of plots. Line Plots display numerical values on one axis, and categorical values on the other. They can typically be used in much the same way […]

Read more

A Comprehensive Step-by-Step Guide to Become an Industry Ready Data Science Professional

Introduction to Artificial Intelligence and Machine Learning Artificial Intelligence (AI) and its sub-field Machine Learning (ML) have taken the world by storm. From face recognition cameras, smart personal assistants to self-driven cars. We are moving towards a world enhanced by these recent upcoming technologies. It’s the most exciting time to be in this career field! The global Artificial Intelligence market is expected to grow to $400 billion by the year 2025. From Startups to big organizations, all want to join […]

Read more
1 2 3 7