Robotics & Artificial Intelligence

Write a Python program to demonstrate the use of the Pandas library.

Python Modules

1 Like

Answer

import pandas as pd
data = {
    'Name': ['Jai', 'Anny', 'Akshat', 'Priyanshi'],
    'Roll No': [10, 11, 12, 13],
    'Address': ['New Delhi', 'Mumbai', 'Los Angeles', 'Chicago']
}
df = pd.DataFrame(data)
print(df)

Output

       Name  Roll No      Address
0        Jai       10    New Delhi
1       Anny       11       Mumbai
2     Akshat       12  Los Angeles
3  Priyanshi       13      Chicago

Answered By

1 Like


Related Questions