diff --git a/python-data-analysis/README.md b/python-data-analysis/README.md new file mode 100644 index 0000000000..4284962772 --- /dev/null +++ b/python-data-analysis/README.md @@ -0,0 +1 @@ +# Using Python for Data Analysis diff --git a/python-data-analysis/james_bond_data.csv b/python-data-analysis/james_bond_data.csv new file mode 100644 index 0000000000..4a983b2201 --- /dev/null +++ b/python-data-analysis/james_bond_data.csv @@ -0,0 +1,28 @@ +Release,Movie,Bond,Bond_Car_MFG,US_Gross,World_Gross,Budget ($ 000s),Film_Length,Avg_User_IMDB,Avg_User_Rtn_Tom,Martinis,Kills_Bond +"June, 1962",Dr. No,Sean Connery,Sunbeam," $16,067,035.00 "," $59,567,035.00 "," $1,000.00 ",110 mins,7.3,7.7,2,4 +"August, 1963",From Russia with Love,Sean Connery,Bently," $24,800,000.00 "," $78,900,000.00 "," $2,000.00 ",115 mins,7.5,8,0,11 +"May, 1964",Goldfinger,Sean Connery,Aston Martin," $51,100,000.00 "," $124,900,000.00 "," $3,000.00 ",110 mins,7.8,8.4,1,9 +"September, 1965",Thunderball,Sean Connery,Aston Martin," $63,600,000.00 "," $141,200,000.00 "," $9,000.00 ",130 mins,7,6.8,0,20 +"November, 1967",You Only Live Twice,Sean Connery,Toyota," $43,100,000.00 "," $111,600,000.00 "," $9,500.00 ",117 mins,6.9,6.3,1,21 +"July, 1969",On Her Majesty's Secret Service,George Lazenby,Mercury," $22,800,000.00 "," $82,000,000.00 "," $8,000.00 ",142 mins,6.8,6.7,1,5 +"March, 1971",Diamonds Are Forever,Shawn Connery,Ford," $43,800,000.00 "," $116,000,000.00 "," $7,200.00 ",1200 mins,6.7,6.3,0,7 +"August, 1973",Live and Let Die,Roger Moore,AMC," $35,400,000.00 "," $161,800,000.00 "," $7,000.00 ",121 mins,6.8,5.9,0,8 +"July, 1974",The Man with the Golden Gun,Roger Moore,AMC," $21,000,000.00 "," $97,600,000.00 "," $7,000.00 ",125 mins,6.7,5.1,0,1 +"July, 1974",The Man with the Golden Gun,Roger Moore,AMC," $21,000,000.00 "," $97,600,000.00 "," $7,000.00 ",125 mins,6.7,5.1,0,1 +"April, 1977",The Spy Who Loved Me,Roger Moore,Lotus," $46,800,000.00 "," $185,400,000.00 "," $14,000.00 ",125 mins,,,1,31 +"October, 1979",Moonraker,Roger Moore,Lotus," $70,300,000.00 "," $210,300,000.00 "," $31,000.00 ",126 mins,6.2,5.7,1,12 +"June, 1981",For Your Eyes Only,Roger MOORE,Citroen," $54,800,000.00 "," $195,300,000.00 "," $28,000.00 ",127 mins,6.8,6.3,0,18 +"March, 1983",Octopussy,Roger Moore,Bajaj," $67,900,000.00 "," $187,500,000.00 "," $27,500.00 ",131 mins,6.5,5.3,0,15 +"October, 1985",A View to a Kill,Roger Moore,Rolls Royce," $50,327,960.00 "," $152,627,960.00 "," $30,000.00 ",131 mins,6.2,4.7,0,5 +"May, 1987",The Living Daylights,Timothy Dalton,Rolls Royce," $51,185,000.00 "," $191,200,000.00 "," $40,000.00 ",130 mins,6.7,6.3,2,13 +"May, 1987",The Living Daylights,Timothy Dalton,Rolls Royce," $51,185,000.00 "," $191,200,000.00 "," $40,000.00 ",130 mins,6.7,6.3,2,13 +"January, 1989",License to Kill,Timothy Dalton,Aston Martin," $34,667,015.00 "," $156,167,015.00 "," $42,000.00 ",133 mins,6.5,6,1,10 +"September, 1995",GoldenEye,Pierce Brosnan,BMW," $106,429,941.00 "," $356,429,941.00 "," $60,000.00 ",130 mins,7.2,6.9,1,47 +"July, 1997",Tomorrow Never Dies,Pierce Brosnan,Aston Martin," $125,304,276.00 "," $339,504,276.00 "," $110,000.00 ",119 mins,6.4,6,1,30 +"June, 1999",The World Is Not Enough,Pierce Brosnan,BMW," $126,930,660.00 "," $361,730,660.00 "," $135,000.00 ",128 mins,6.3,5.7,1,27 +"August, 2002",Die Another Day,Pierce Brosnan,Aston Martin," $160,942,139.00 "," $431,942,139.00 "," $142,000.00 ",133 mins,6,6.1,2,31 +"February, 2006",Casino Royale,Daniel Craig,Astin Martin," $167,365,000.00 "," $596,365,000.00 "," $102,000.00 ",144 mins,7.9,7.8,3,11 +"December, 2008",Quantum of Solace,Daniel Craig,Aston Martin," $169,368,427.00 "," $591,692,078.00 "," $230,000.00 ",106 mins,6.7,6.1,-6,16 +"November, 2012",Skyfall,Daniel Craig,Astin Martin," $304,360,277.00 "," $1,108,561,108.00 "," $200,000.00 ",143 mins,7.8,8.2,1,26 +"September, 2015",Spectre,Daniel Craig,Aston Martin," $200,074,175.00 "," $879,620,923.00 "," $245,000.00 ",148 mins,6.8,6.4,1,30 +"November, 2021",No Time to Die,Daniel Craig,Aston Martin," $160,891,007.00 "," $759,959,662.00 "," $275,000.00 ",163 mins,7.3,7.3,1,14 diff --git a/python-data-analysis/james_bond_data.json b/python-data-analysis/james_bond_data.json new file mode 100644 index 0000000000..852810b38e --- /dev/null +++ b/python-data-analysis/james_bond_data.json @@ -0,0 +1 @@ +{"Release":{"0":"June, 1962","1":"August, 1963","2":"May, 1964","3":"September, 1965","4":"November, 1967","5":"July, 1969","6":"March, 1971","7":"August, 1973","8":"July, 1974","9":"July, 1974","10":"April, 1977","11":"October, 1979","12":"June, 1981","13":"March, 1983","14":"October, 1985","15":"May, 1987","16":"May, 1987","17":"January, 1989","18":"September, 1995","19":"July, 1997","20":"June, 1999","21":"August, 2002","22":"February, 2006","23":"December, 2008","24":"November, 2012","25":"September, 2015","26":"November, 2021"},"Movie":{"0":"Dr. No","1":"From Russia with Love","2":"Goldfinger","3":"Thunderball","4":"You Only Live Twice","5":"On Her Majesty's Secret Service","6":"Diamonds Are Forever","7":"Live and Let Die","8":"The Man with the Golden Gun","9":"The Man with the Golden Gun","10":"The Spy Who Loved Me","11":"Moonraker","12":"For Your Eyes Only","13":"Octopussy","14":"A View to a Kill","15":"The Living Daylights","16":"The Living Daylights","17":"License to Kill","18":"GoldenEye","19":"Tomorrow Never Dies","20":"The World Is Not Enough","21":"Die Another Day","22":"Casino Royale","23":"Quantum of Solace","24":"Skyfall","25":"Spectre","26":"No Time to Die"},"Bond":{"0":"Sean Connery","1":"Sean Connery","2":"Sean Connery","3":"Sean Connery","4":"Sean Connery","5":"George Lazenby","6":"Shawn Connery","7":"Roger Moore","8":"Roger Moore","9":"Roger Moore","10":"Roger Moore","11":"Roger Moore","12":"Roger MOORE","13":"Roger Moore","14":"Roger Moore","15":"Timothy Dalton","16":"Timothy Dalton","17":"Timothy Dalton","18":"Pierce Brosnan","19":"Pierce Brosnan","20":"Pierce Brosnan","21":"Pierce Brosnan","22":"Daniel Craig","23":"Daniel Craig","24":"Daniel Craig","25":"Daniel Craig","26":"Daniel Craig"},"Bond_Car_MFG":{"0":"Sunbeam","1":"Bently","2":"Aston Martin","3":"Aston Martin","4":"Toyota","5":"Mercury","6":"Ford","7":"AMC","8":"AMC","9":"AMC","10":"Lotus","11":"Lotus","12":"Citroen","13":"Bajaj","14":"Rolls Royce","15":"Rolls Royce","16":"Rolls Royce","17":"Aston Martin","18":"BMW","19":"Aston Martin","20":"BMW","21":"Aston Martin","22":"Astin Martin","23":"Aston Martin","24":"Astin Martin","25":"Aston Martin","26":"Aston Martin"},"US_Gross":{"0":" $16,067,035.00 ","1":" $24,800,000.00 ","2":" $51,100,000.00 ","3":" $63,600,000.00 ","4":" $43,100,000.00 ","5":" $22,800,000.00 ","6":" $43,800,000.00 ","7":" $35,400,000.00 ","8":" $21,000,000.00 ","9":" $21,000,000.00 ","10":" $46,800,000.00 ","11":" $70,300,000.00 ","12":" $54,800,000.00 ","13":" $67,900,000.00 ","14":" $50,327,960.00 ","15":" $51,185,000.00 ","16":" $51,185,000.00 ","17":" $34,667,015.00 ","18":" $106,429,941.00 ","19":" $125,304,276.00 ","20":" $126,930,660.00 ","21":" $160,942,139.00 ","22":" $167,365,000.00 ","23":" $169,368,427.00 ","24":" $304,360,277.00 ","25":" $200,074,175.00 ","26":" $160,891,007.00 "},"World_Gross":{"0":" $59,567,035.00 ","1":" $78,900,000.00 ","2":" $124,900,000.00 ","3":" $141,200,000.00 ","4":" $111,600,000.00 ","5":" $82,000,000.00 ","6":" $116,000,000.00 ","7":" $161,800,000.00 ","8":" $97,600,000.00 ","9":" $97,600,000.00 ","10":" $185,400,000.00 ","11":" $210,300,000.00 ","12":" $195,300,000.00 ","13":" $187,500,000.00 ","14":" $152,627,960.00 ","15":" $191,200,000.00 ","16":" $191,200,000.00 ","17":" $156,167,015.00 ","18":" $356,429,941.00 ","19":" $339,504,276.00 ","20":" $361,730,660.00 ","21":" $431,942,139.00 ","22":" $596,365,000.00 ","23":" $591,692,078.00 ","24":" $1,108,561,108.00 ","25":" $879,620,923.00 ","26":" $759,959,662.00 "},"Budget ($ 000s)":{"0":" $1,000.00 ","1":" $2,000.00 ","2":" $3,000.00 ","3":" $9,000.00 ","4":" $9,500.00 ","5":" $8,000.00 ","6":" $7,200.00 ","7":" $7,000.00 ","8":" $7,000.00 ","9":" $7,000.00 ","10":" $14,000.00 ","11":" $31,000.00 ","12":" $28,000.00 ","13":" $27,500.00 ","14":" $30,000.00 ","15":" $40,000.00 ","16":" $40,000.00 ","17":" $42,000.00 ","18":" $60,000.00 ","19":" $110,000.00 ","20":" $135,000.00 ","21":" $142,000.00 ","22":" $102,000.00 ","23":" $230,000.00 ","24":" $200,000.00 ","25":" $245,000.00 ","26":" $275,000.00 "},"Film_Length":{"0":"110 mins","1":"115 mins","2":"110 mins","3":"130 mins","4":"117 mins","5":"142 mins","6":"1200 mins","7":"121 mins","8":"125 mins","9":"125 mins","10":"125 mins","11":"126 mins","12":"127 mins","13":"131 mins","14":"131 mins","15":"130 mins","16":"130 mins","17":"133 mins","18":"130 mins","19":"119 mins","20":"128 mins","21":"133 mins","22":"144 mins","23":"106 mins","24":"143 mins","25":"148 mins","26":"163 mins"},"Avg_User_IMDB":{"0":7.3,"1":7.5,"2":7.8,"3":7.0,"4":6.9,"5":6.8,"6":6.7,"7":6.8,"8":6.7,"9":6.7,"10":null,"11":6.2,"12":6.8,"13":6.5,"14":6.2,"15":6.7,"16":6.7,"17":6.5,"18":7.2,"19":6.4,"20":6.3,"21":6.0,"22":7.9,"23":6.7,"24":7.8,"25":6.8,"26":7.3},"Avg_User_Rtn_Tom":{"0":7.7,"1":8.0,"2":8.4,"3":6.8,"4":6.3,"5":6.7,"6":6.3,"7":5.9,"8":5.1,"9":5.1,"10":null,"11":5.7,"12":6.3,"13":5.3,"14":4.7,"15":6.3,"16":6.3,"17":6.0,"18":6.9,"19":6.0,"20":5.7,"21":6.1,"22":7.8,"23":6.1,"24":8.2,"25":6.4,"26":7.3},"Martinis":{"0":2,"1":0,"2":1,"3":0,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":1,"11":1,"12":0,"13":0,"14":0,"15":2,"16":2,"17":1,"18":1,"19":1,"20":1,"21":2,"22":3,"23":-6,"24":1,"25":1,"26":1},"Kills_Bond":{"0":4,"1":11,"2":9,"3":20,"4":21,"5":5,"6":7,"7":8,"8":1,"9":1,"10":31,"11":12,"12":18,"13":15,"14":5,"15":13,"16":13,"17":10,"18":47,"19":30,"20":27,"21":31,"22":11,"23":16,"24":26,"25":30,"26":14}} \ No newline at end of file diff --git a/python-data-analysis/james_bond_data.parquet b/python-data-analysis/james_bond_data.parquet new file mode 100644 index 0000000000..88bd22b4fb Binary files /dev/null and b/python-data-analysis/james_bond_data.parquet differ diff --git a/python-data-analysis/james_bond_data.xlsx b/python-data-analysis/james_bond_data.xlsx new file mode 100644 index 0000000000..1e042705fc Binary files /dev/null and b/python-data-analysis/james_bond_data.xlsx differ diff --git a/python-data-analysis/james_bond_data_cleansed.csv b/python-data-analysis/james_bond_data_cleansed.csv new file mode 100644 index 0000000000..04d4f213b9 --- /dev/null +++ b/python-data-analysis/james_bond_data_cleansed.csv @@ -0,0 +1,26 @@ +Release,Movie,Bond,Bond_Car_MFG,US_Gross,World_Gross,Budget,Film_Length,Avg_User_IMDB,Avg_User_Rtn_Tom,Martinis,Kills_Bond,Release_Year +1962-06-01,Dr. No,Sean Connery,Sunbeam,16067035.0,59567035.0,1000000.0,110,7.3,7.7,2,4,1962 +1963-08-01,From Russia with Love,Sean Connery,Bently,24800000.0,78900000.0,2000000.0,115,7.5,8.0,0,11,1963 +1964-05-01,Goldfinger,Sean Connery,Aston Martin,51100000.0,124900000.0,3000000.0,110,7.8,8.4,1,9,1964 +1965-09-01,Thunderball,Sean Connery,Aston Martin,63600000.0,141200000.0,9000000.0,130,7.0,6.8,0,20,1965 +1967-11-01,You Only Live Twice,Sean Connery,Toyota,43100000.0,111600000.0,9500000.0,117,6.9,6.3,1,21,1967 +1969-07-01,On Her Majesty's Secret Service,George Lazenby,Mercury,22800000.0,82000000.0,8000000.0,142,6.8,6.7,1,5,1969 +1971-03-01,Diamonds Are Forever,Sean Connery,Ford,43800000.0,116000000.0,7200000.0,120,6.7,6.3,0,7,1971 +1973-08-01,Live and Let Die,Roger Moore,AMC,35400000.0,161800000.0,7000000.0,121,6.8,5.9,0,8,1973 +1974-07-01,The Man with the Golden Gun,Roger Moore,AMC,21000000.0,97600000.0,7000000.0,125,6.7,5.1,0,1,1974 +1977-04-01,The Spy Who Loved Me,Roger Moore,Lotus,46800000.0,185400000.0,14000000.0,125,7.1,6.8,1,31,1977 +1979-10-01,Moonraker,Roger Moore,Lotus,70300000.0,210300000.0,31000000.0,126,6.2,5.7,1,12,1979 +1981-06-01,For Your Eyes Only,Roger Moore,Citroen,54800000.0,195300000.0,28000000.0,127,6.8,6.3,0,18,1981 +1983-03-01,Octopussy,Roger Moore,Bajaj,67900000.0,187500000.0,27500000.0,131,6.5,5.3,0,15,1983 +1985-10-01,A View to a Kill,Roger Moore,Rolls Royce,50327960.0,152627960.0,30000000.0,131,6.2,4.7,0,5,1985 +1987-05-01,The Living Daylights,Timothy Dalton,Rolls Royce,51185000.0,191200000.0,40000000.0,130,6.7,6.3,2,13,1987 +1989-01-01,License to Kill,Timothy Dalton,Aston Martin,34667015.0,156167015.0,42000000.0,133,6.5,6.0,1,10,1989 +1995-09-01,GoldenEye,Pierce Brosnan,BMW,106429941.0,356429941.0,60000000.0,130,7.2,6.9,1,47,1995 +1997-07-01,Tomorrow Never Dies,Pierce Brosnan,Aston Martin,125304276.0,339504276.0,110000000.0,119,6.4,6.0,1,30,1997 +1999-06-01,The World Is Not Enough,Pierce Brosnan,BMW,126930660.0,361730660.0,135000000.0,128,6.3,5.7,1,27,1999 +2002-08-01,Die Another Day,Pierce Brosnan,Aston Martin,160942139.0,431942139.0,142000000.0,133,6.0,6.1,2,31,2002 +2006-02-01,Casino Royale,Daniel Craig,Aston Martin,167365000.0,596365000.0,102000000.0,144,7.9,7.8,3,11,2006 +2008-12-01,Quantum of Solace,Daniel Craig,Aston Martin,169368427.0,591692078.0,230000000.0,106,6.7,6.1,6,16,2008 +2012-11-01,Skyfall,Daniel Craig,Aston Martin,304360277.0,1108561108.0,200000000.0,143,7.8,8.2,1,26,2012 +2015-09-01,Spectre,Daniel Craig,Aston Martin,200074175.0,879620923.0,245000000.0,148,6.8,6.4,1,30,2015 +2021-11-01,No Time to Die,Daniel Craig,Aston Martin,160891007.0,759959662.0,275000000.0,163,7.3,7.3,1,14,2021