0% found this document useful (0 votes)
35 views4 pages

Data Field Identifier Data Type

This document defines the data types for various cricket stats fields for a player profile. It includes fields like player name, nationality, runs scored, centuries, sixes, teams played for, and favorite cricketers. Data types include string, float, integer, set, dictionary, tuple and list to properly represent things like names, run rates, counts, formats, match details by competition, teams, and mutable favorite player lists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

Data Field Identifier Data Type

This document defines the data types for various cricket stats fields for a player profile. It includes fields like player name, nationality, runs scored, centuries, sixes, teams played for, and favorite cricketers. Data types include string, float, integer, set, dictionary, tuple and list to properly represent things like names, run rates, counts, formats, match details by competition, teams, and mutable favorite player lists.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DATA FIELD IDENTIFIER DATA TYPE

Player_Name String
Nationality String
Run_rate Float
50s_scored Int
100s_scored Int
200s_scored Int
Sixers Int
Fours Int
Duck_Outs Int
Format Set
Matches_Played Dictionary
Score_in_diff_formats Dictionary
Teams_played_for Tuple

Favorite_cricketers List
EXAMPLE
Sachin Tendulkar
India
53.79
68
51
6
69
2058
14
{"Test", "ODI", "T20", "IPL"}
{"Test":200, "ODI":463, "T20":1, "IPL":78}
{"Test":248, "ODI":200, "T20":10, "IPL":100}
("India", "India A", "India B", "India Blue", "India Seniors"
"Rest of India", "Rest of the World", "Wills XI", "West Zone"
"Yorkshire", "Mumbai", "Marylebone Cricket Club",
"Sachins Blasters")
["Vivian Richards", "Imran Khan", "Sunil Gavaskar"]
REASON TO CHOOSE THIS DATA TYPE
Player name consists of characters
Nationality consists of characters
Run rate is in decimal format
No.of 50s is an Integer
No.of 100s is an Integer
No.of 200s is an Integer
No.of sixers is an Integer
No.of fours is an Integer
No.of duck outs is an Integer
Format of matches is catogerised under set as format of every match should be unique/ should not repeat more than once
No.of matches played is listed under dictionary format
Score in various formats is listed under dictionary format
Sachin is retired bats man. So, teams played is immutable and no more teams can be added or deleted.

Favorite crickter is catogerised under list as it is mutable and it can be changed as per time
epeat more than once

You might also like