Curriculum
Course: Pandas
Login
Text lesson

Pandas Getting Started

Installation of Pandas

If Python and PIP are already installed on your system, installing Pandas is simple. Just use the following command:

C:\Users\Your Name>pip install pandas

If this command doesn’t work, try using a Python distribution that comes with Pandas pre-installed, such as Anaconda or Spyder.

Import Pandas

After installing Pandas, you can import it into your applications using the import keyword:

import pandas

Pandas is now successfully imported and ready for use.

Example

import pandas

mydataset = {
  ‘cars’: [“BMW”“Volvo”“Ford”],
  ‘passings’: [372]
}

myvar = pandas.DataFrame(mydataset)

print(myvar)