मराठी

Create the following series and do the specified operation: Friends, from a dictionary having roll numbers of five of your friends as data and their first name as keys.

Advertisements
Advertisements

प्रश्न

Create the following series and do the specified operation:

Friends, from a dictionary having roll numbers of five of your friends as data and their first name as keys.

कोड लेखन
Advertisements

उत्तर

import pandas as pd
Friends = pd.Series({'Amit': 101, 'Rahul': 102, 'Priya': 103, 'Neha': 104, 'Rohan': 105})
print(Friends)

Output:

Amit 101
Rahul 102
Priya 103
Neha 104
Rohan 105
dtype int64
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: Data Handling using Pandas - I - Exercise [पृष्ठ ६०]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
पाठ 2 Data Handling using Pandas - I
Exercise | Q 5. c) | पृष्ठ ६०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×