Question: Your task: Define records _ to _ metadf as follows: Convert ( cleaned ) records, ( just submitted a question in Chegg, refer that please

Your task: Define records_to_metadf as follows:
Convert (cleaned) records, (just submitted a question in Chegg, refer that please), which represent publications metadata into a pandas Dataframe.
Input: records - A list of cleaned records (eg see clean_records)
Return: metadf - A pandas Dataframe of the metadata, as defined below."
Steps: Construct a pandas Dataframe with columns for these keys: 'id', 'title', 'year', 'venue', 'abstract'
Other Notes: The target fields are guaranteed to exist based on the cleaning procedure
Example: THe demo runs the function on elements [11222,11239,12329] of cleaned_records(refer to my previous chegg question). A correct implementation would produce:
id :648046
title:A tutorial for C++
year: 1984
venue: A tutorial for c++
abstract: codes and number
Code######
def records_to_metadf(records: list)-> pd.DataFrame:
### code here###
demo_cleaned_records =[cleaned_records[k] for k in [11222,11239,12329]]
demo_metadf = records_to_metadf(demo_cleaned_records)
display(demo_metadf)

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!