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.
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.
import pandas mydataset = { ‘cars’: [“BMW”, “Volvo”, “Ford”], ‘passings’: [3, 7, 2] } myvar = pandas.DataFrame(mydataset) print(myvar) |