How To Load Machine Learning Data From Files In Python

Published: 28 April 2020
on channel: Patrick Loeber
15,593
270

Get my Free NumPy Handbook:
https://www.python-engineer.com/numpy...

The common data format in Machine Learning is a CSV file (comma separated values). In this Tutorial I show 4 different ways how you can load the data from such files and then prepare the data. I also show you some best practices on how to deal with the correct data type, missing values, and an optional header. The 4 approaches are:

with the csv module
with numpy: np.loadtxt() and numpy.genfromtxt()
with pandas: pd.read_csv()

📓 Notebooks available on Patreon:
  / patrickloeber  

⭐ Join Our Discord :   / discord  

If you enjoyed this video, please subscribe to the channel!

The code and all Machine Learning tutorials can be found here:
https://github.com/patrickloeber/MLfr...

You can find me here:
Website: https://www.python-engineer.com
Twitter:   / patrickloeber  
GitHub: https://github.com/patloeber

#Python #MachineLearning


Watch video How To Load Machine Learning Data From Files In Python online, duration hours minute second in high quality that is uploaded to the channel Patrick Loeber 28 April 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 15,593 times and liked it 270 visitors.