Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- import yaml
- with open('C:\Users\dbda\Downloads\t20s\211028.yaml', 'r') as f:
- df = pd.io.json.json_normalize(yaml.load(f))
- print(df)
- info.city info.dates info.gender info.match_type
- 0 Southampton [2005-06-13] male T20
- info.outcome.by.runs info.outcome.winner info.overs info.player_of_match
- 0 100 England 20 [KP Pietersen]
- info.teams info.toss.decision info.toss.winner
- 0 [England, Australia] bat England
- info.umpires info.venue
- 0 [NJ Llong, JW Lloyds] The Rose Bowl
- innings meta.created
- 0 [{'1st innings': {'team': 'England', 'deliveri... 2013-02-22
- meta.data_version meta.revision
- 0 0.9 1
Add Comment
Please, Sign In to add comment