Wednesday, January 17, 2024

Pandas, Numpy and Matplotlib: Basic Python libraries for Loading data from data files into our Python program.

Install all these three libaraies using the following commands:

pip install pandas 

pip install numpy

pip install matplotlib --user

Now, open the Python interpreter and import each in your Python program as follows:

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

Now start using each of them in your program as follows:

df = pd.read_csv('location path of the .csv file from which data has to be loaded')



No comments:

Post a Comment

Sacred Thought

5 May 2024 Hari Om Verse 50-51, chapter two:  In this chapter two Shree krishna explains a simple way of living. Free from desires and void ...