- Applied Deep Learning with Python
- Alex Galea Luis Capelo
- 158字
- 2021-08-13 15:53:06
Loading the Data into Jupyter Using a Pandas DataFrame
Oftentimes, data is stored in tables, which means it can be saved as a comma-separated variable (CSV) file. This format, and many others, can be read into Python as a DataFrame object, using the Pandas library. Other common formats include tab-separated variable (TSV), SQL tables, and JSON data structures. Indeed, Pandas has support for all of these. In this example, however, we are not going to load the data this way because the dataset is available directly through scikit-learn.
An important part after loading data for analysis is ensuring that it's clean. For example, we would generally need to deal with missing data and ensure that all columns have the correct datatypes. The dataset we use in this section has already been cleaned, so we will not need to worry about this. However, we'll see messier data in the second chapter and explore techniques for dealing with it.
推薦閱讀
- Mastering OpenCV Android Application Programming
- Pandas Cookbook
- Django:Web Development with Python
- 零基礎(chǔ)學(xué)Java(第4版)
- Instant Lucene.NET
- 零基礎(chǔ)Java學(xué)習(xí)筆記
- Canvas Cookbook
- 深入理解C指針
- ArcGIS for Desktop Cookbook
- Python程序設(shè)計(jì)與算法基礎(chǔ)教程(第2版)(微課版)
- Processing創(chuàng)意編程指南
- Learning Grunt
- AMP:Building Accelerated Mobile Pages
- Kotlin進(jìn)階實(shí)戰(zhàn)
- iOS Development with Xamarin Cookbook