课程: Machine Learning with Python: Foundations
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
How to import data in Python - Python教程
课程: Machine Learning with Python: Foundations
How to import data in Python
- [Instructor] One of the reasons why Python is such a popular programming language for machine learning is because it supports some very powerful and easy to use packages, which are purpose built for data analysis. One of these packages is a pandas package. The pandas package provides several easy to use functions for creating, structuring, and importing data. Before we can use any of these functions, we first have to import the pandas package using the import command. Here, the import command imports the pandas package, and we use an alias for the package. We call it pd. This allows us to refer to the functions of the package by simply referring to pd dot a function name. One of the ways the pandas represents data is as a series. A panda series is heterogeneous one dimensional array-like data structure with labeled rows. We can create a panda series from a previously created list. Given the members list, we can create…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。