Question: Consider this data: users = [{ id: 0, name: Hero },{ id: 1, name: Dunn },{ id: 2, name: Sue },{ id: 3, name: Chi

Consider this data:

users = [{ "id": 0, "name": "Hero" },{ "id": 1, "name": "Dunn" },{ "id": 2, "name": "Sue" },{ "id": 3, "name": "Chi" },

{ "id": 4, "name": "Thor" },{ "id": 5, "name": "Clive" },{ "id": 6, "name": "Hicks" },{ "id": 7, "name": "Devin" },

{ "id": 8, "name": "Kate" },{ "id": 9, "name": "Klein" }]

interests = [(0, "Hadoop"), (0, "Big Data"), (0, "HBase"), (0, "Java"),(0, "Spark"), (0, "Storm"), (0, "Cassandra"),(1,

"NoSQL"), (1, "MongoDB"), (1, "Cassandra"), (1, "HBase"),(1, "Postgres"), (2, "Python"), (2, "scikit-learn"), (2, "scipy"),(2,

"numpy"), (2, "statsmodels"), (2, "pandas"), (3, "R"), (3, "Python"),(3, "statistics"), (3, "regression"), (3, "probability"),(4,

"machine learning"), (4, "regression"), (4, "decision trees"),(4, "libsvm"), (5, "Python"), (5, "R"), (5, "Java"), (5, "C++"),(5,

"Haskell"), (5, "programming languages"), (6, "statistics"),(6, "probability"), (6, "mathematics"), (6, "theory"),(7,

"machine learning"), (7, "scikit-learn"), (7, "Mahout"),(7, "neural networks"), (8, "neural networks"), (8, "deep

learning"),(8, "Big Data"), (8, "artificial intelligence"), (9, "Hadoop"),(9, "Java"), (9, "MapReduce"), (9, "Big Data")]

Question 1:

Identify the nature of above two datasets and write the python code to import these data given above into pandas dataframe

collectively.

Question 2:

After importing above two data into pandas dataframe; Write the python code to identify the name of friends that have

common interest in machine learning.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!