Question Solved1 Answer write xml and xsl program write a XML program: You are given a CSV (Comma Separated Values file with information on the SuperBowl (SB) winners. Use this file to create a page that displays: 1. The name of the football teams that won the SB after 1960 2. How many times New York Giants won the SB? Use this site Convert CSV to XML to convert th given CSV file to XML.

8CKZCH The Asker · Computer Science
write xml and xsl program

Transcribed Image Text: write a XML program: You are given a CSV (Comma Separated Values file with information on the SuperBowl (SB) winners. Use this file to create a page that displays: 1. The name of the football teams that won the SB after 1960 2. How many times New York Giants won the SB? Use this site Convert CSV to XML to convert th given CSV file to XML.
More
Transcribed Image Text: write a XML program: You are given a CSV (Comma Separated Values file with information on the SuperBowl (SB) winners. Use this file to create a page that displays: 1. The name of the football teams that won the SB after 1960 2. How many times New York Giants won the SB? Use this site Convert CSV to XML to convert th given CSV file to XML.
See Answer
Add Answer +20 Points
Community Answer
QK8JWQ The First Answerer
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

Solution:- read_csv(<copy the path or place the file in current working directory>) df['winning_year']---column name import pandas as pd df = pd.read_csv('data.csv') result = df[df['winning_year']>1960] def func(row):     xml = ['<item>']     for field in row.index:         xml.append('  <field name="{0}">{1}</field>'.format(field, row[field]))     xml.append('</item>')     return 'n'.join(xml)      print('n'.join(result.apply(func, axis=1))) 2. import pandas as pd df = pd.read_csv('data.csv') result = df[df['win']== True] def func(row):     xml = ['<item>']     for field in row ... See the full answer