diff --git a/pandas_workout_hanan.md b/pandas_workout_hanan.md new file mode 100644 index 0000000..0333e90 --- /dev/null +++ b/pandas_workout_hanan.md @@ -0,0 +1,1365 @@ +# Publicly available datasets + + + +# Dataset 1: + +- Link: https://www.kaggle.com/emilynallen/top-20-songs-1970s2000s-w-audio-features?select=Top+20+All+Decades.csv +- Purpose: I would use this dataset of to find top 5 songs that where listen to during the time frame from 70s-80s + +# Dataset 2: + +- Link: https://www.kaggle.com/stefanoleone992/imdb-extensive-dataset +- Purpose: I would use this dataset of movies to find the a list of Crime movies made in the US. + +# Dataset 3: + +- Link: https://www.kaggle.com/zynicide/wine-reviews?select=winemag-data-130k-v2.csv +- Purpose: I would use this data set to find the List of wines that are made in france. + +# Dataset 4: + +- Link:https://www.kaggle.com/uciml/iris?select=Iris.csv +- Purpose: I would use this dataset to find out which species of the iris have the largest Petal length. + +# Dataset 5: + +- Link: https://www.kaggle.com/imls/museum-directory?select=museums.csv +- Purpose: I would use this dataset to find out what type of museums are most frequent in the United States. + + + +```python +import pandas as pd +``` + +# Dataset information + +## Dataset 1 : Top 20 songs from 1970s - 2000s + + +```python +dataset1 = pd.read_csv("top_20_music.csv") +``` + + +```python + +dataset1.head() +``` + + + + +
| + | Name | +Artist | +Decade | +Rank | +danceability | +energy | +key | +loudness | +speechiness | +acousticness | +instrumentalness | +liveness | +valence | +tempo | +duration_ms | +time_signature | +Country | +City | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | +The Twist | +Chubby Checker | +60 | +1 | +0.533 | +0.638 | +4 | +-7.130 | +0.0341 | +0.202 | +0.000 | +0.0729 | +0.937 | +156.663 | +153760 | +4 | +United States | +Philadelphia | +
| 1 | +Hey Jude | +The Beatles | +60 | +2 | +0.462 | +0.632 | +5 | +-7.438 | +0.0248 | +0.091 | +0.000 | +0.3970 | +0.585 | +74.268 | +238854 | +4 | +England | +Liverpool | +
| 2 | +Theme from “A Summer Place” | +Percy Faith & His Orchestra | +60 | +3 | +0.466 | +0.389 | +5 | +-12.825 | +0.0253 | +0.631 | +0.843 | +0.2950 | +0.749 | +92.631 | +144893 | +4 | +Canada | +Toronto | +
| 3 | +Tossin’ and Turnin’ | +Bobby Lewis | +60 | +4 | +0.569 | +0.722 | +0 | +-8.914 | +0.0393 | +0.255 | +0.000 | +0.1080 | +0.965 | +142.736 | +159640 | +4 | +United States | +Indianapolis | +
| 4 | +I Want to Hold Your Hand | +The Beatles | +60 | +5 | +0.490 | +0.715 | +7 | +-5.549 | +0.0476 | +0.386 | +0.000 | +0.3110 | +0.866 | +130.726 | +145747 | +4 | +England | +Liverpool | +
| + | Name | +Artist | +Decade | +Rank | +danceability | +energy | +key | +loudness | +speechiness | +acousticness | +instrumentalness | +liveness | +valence | +tempo | +duration_ms | +time_signature | +Country | +City | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 94 | +Whatever You Like | +T.I. | +2000 | +16 | +0.680 | +0.687 | +9 | +-6.162 | +0.0709 | +0.0161 | +0.000000 | +0.261 | +0.467 | +150.053 | +249533 | +4 | +United States | +Atlanta | +
| 95 | +Bleeding Love | +Leona Lewis | +2000 | +17 | +0.638 | +0.656 | +5 | +-5.886 | +0.0357 | +0.1880 | +0.000000 | +0.146 | +0.225 | +104.036 | +262467 | +4 | +United Kingdom | +London | +
| 96 | +Independent Women, Part I | +Destiny’s Child | +2000 | +18 | +0.730 | +0.602 | +6 | +-3.782 | +0.2060 | +0.3620 | +0.000004 | +0.169 | +0.927 | +97.954 | +221133 | +4 | +United States | +Houston | +
| 97 | +Foolish | +Ashanti | +2000 | +19 | +0.477 | +0.728 | +0 | +-5.710 | +0.0831 | +0.3580 | +0.000000 | +0.110 | +0.690 | +89.209 | +227387 | +4 | +United States | +Glen Cove | +
| 98 | +Hey Ya! | +Outkast | +2000 | +20 | +0.715 | +0.970 | +0 | +-2.206 | +0.0648 | +0.0644 | +0.000156 | +0.205 | +0.963 | +79.504 | +239240 | +4 | +United States | +East Point | +
| + | imdb_title_id | +title | +original_title | +year | +date_published | +genre | +duration | +country | +language | +director | +... | +actors | +description | +avg_vote | +votes | +budget | +usa_gross_income | +worlwide_gross_income | +metascore | +reviews_from_users | +reviews_from_critics | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | +tt0000009 | +Miss Jerry | +Miss Jerry | +1894 | +1894-10-09 | +Romance | +45 | +USA | +None | +Alexander Black | +... | +Blanche Bayliss, William Courtenay, Chauncey D... | +The adventures of a female reporter in the 1890s. | +5.9 | +154 | +NaN | +NaN | +NaN | +NaN | +1.0 | +2.0 | +
| 1 | +tt0000574 | +The Story of the Kelly Gang | +The Story of the Kelly Gang | +1906 | +1906-12-26 | +Biography, Crime, Drama | +70 | +Australia | +None | +Charles Tait | +... | +Elizabeth Tait, John Tait, Norman Campbell, Be... | +True story of notorious Australian outlaw Ned ... | +6.1 | +589 | +$ 2250 | +NaN | +NaN | +NaN | +7.0 | +7.0 | +
| 2 | +tt0001892 | +Den sorte drøm | +Den sorte drøm | +1911 | +1911-08-19 | +Drama | +53 | +Germany, Denmark | +NaN | +Urban Gad | +... | +Asta Nielsen, Valdemar Psilander, Gunnar Helse... | +Two men of high rank are both wooing the beaut... | +5.8 | +188 | +NaN | +NaN | +NaN | +NaN | +5.0 | +2.0 | +
| 3 | +tt0002101 | +Cleopatra | +Cleopatra | +1912 | +1912-11-13 | +Drama, History | +100 | +USA | +English | +Charles L. Gaskill | +... | +Helen Gardner, Pearl Sindelar, Miss Fielding, ... | +The fabled queen of Egypt's affair with Roman ... | +5.2 | +446 | +$ 45000 | +NaN | +NaN | +NaN | +25.0 | +3.0 | +
| 4 | +tt0002130 | +L'Inferno | +L'Inferno | +1911 | +1911-03-06 | +Adventure, Drama, Fantasy | +68 | +Italy | +Italian | +Francesco Bertolini, Adolfo Padovan | +... | +Salvatore Papa, Arturo Pirovano, Giuseppe de L... | +Loosely adapted from Dante's Divine Comedy and... | +7.0 | +2237 | +NaN | +NaN | +NaN | +NaN | +31.0 | +14.0 | +
5 rows × 22 columns
+| + | imdb_title_id | +title | +original_title | +year | +date_published | +genre | +duration | +country | +language | +director | +... | +actors | +description | +avg_vote | +votes | +budget | +usa_gross_income | +worlwide_gross_income | +metascore | +reviews_from_users | +reviews_from_critics | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 85850 | +tt9908390 | +Le lion | +Le lion | +2020 | +2020-01-29 | +Comedy | +95 | +France, Belgium | +French | +Ludovic Colbeau-Justin | +... | +Dany Boon, Philippe Katerine, Anne Serra, Samu... | +A psychiatric hospital patient pretends to be ... | +5.3 | +398 | +NaN | +NaN | +$ 3507171 | +NaN | +NaN | +4.0 | +
| 85851 | +tt9911196 | +De Beentjes van Sint-Hildegard | +De Beentjes van Sint-Hildegard | +2020 | +2020-02-13 | +Comedy, Drama | +103 | +Netherlands | +German, Dutch | +Johan Nijenhuis | +... | +Herman Finkers, Johanna ter Steege, Leonie ter... | +A middle-aged veterinary surgeon believes his ... | +7.7 | +724 | +NaN | +NaN | +$ 7299062 | +NaN | +6.0 | +4.0 | +
| 85852 | +tt9911774 | +Padmavyuhathile Abhimanyu | +Padmavyuhathile Abhimanyu | +2019 | +2019-03-08 | +Drama | +130 | +India | +Malayalam | +Vineesh Aaradya | +... | +Anoop Chandran, Indrans, Sona Nair, Simon Brit... | +NaN | +7.9 | +265 | +NaN | +NaN | +NaN | +NaN | +NaN | +NaN | +
| 85853 | +tt9914286 | +Sokagin Çocuklari | +Sokagin Çocuklari | +2019 | +2019-03-15 | +Drama, Family | +98 | +Turkey | +Turkish | +Ahmet Faik Akinci | +... | +Ahmet Faik Akinci, Belma Mamati, Metin Keçeci,... | +NaN | +6.4 | +194 | +NaN | +NaN | +$ 2833 | +NaN | +NaN | +NaN | +
| 85854 | +tt9914942 | +La vida sense la Sara Amat | +La vida sense la Sara Amat | +2019 | +2020-02-05 | +Drama | +74 | +Spain | +Catalan | +Laura Jou | +... | +Maria Morera Colomer, Biel Rossell Pelfort, Is... | +Pep, a 13-year-old boy, is in love with a girl... | +6.7 | +102 | +NaN | +NaN | +$ 59794 | +NaN | +NaN | +2.0 | +
5 rows × 22 columns
+| + | Unnamed: 0 | +country | +description | +designation | +points | +price | +province | +region_1 | +region_2 | +variety | +winery | +
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | +0 | +US | +This tremendous 100% varietal wine hails from ... | +Martha's Vineyard | +96 | +235.0 | +California | +Napa Valley | +Napa | +Cabernet Sauvignon | +Heitz | +
| 1 | +1 | +Spain | +Ripe aromas of fig, blackberry and cassis are ... | +Carodorum Selección Especial Reserva | +96 | +110.0 | +Northern Spain | +Toro | +NaN | +Tinta de Toro | +Bodega Carmen Rodríguez | +
| 2 | +2 | +US | +Mac Watson honors the memory of a wine once ma... | +Special Selected Late Harvest | +96 | +90.0 | +California | +Knights Valley | +Sonoma | +Sauvignon Blanc | +Macauley | +
| 3 | +3 | +US | +This spent 20 months in 30% new French oak, an... | +Reserve | +96 | +65.0 | +Oregon | +Willamette Valley | +Willamette Valley | +Pinot Noir | +Ponzi | +
| 4 | +4 | +France | +This is the top wine from La Bégude, named aft... | +La Brûlade | +95 | +66.0 | +Provence | +Bandol | +NaN | +Provence red blend | +Domaine de la Bégude | +
| + | Unnamed: 0 | +country | +description | +designation | +points | +price | +province | +region_1 | +region_2 | +variety | +winery | +
|---|---|---|---|---|---|---|---|---|---|---|---|
| 150925 | +150925 | +Italy | +Many people feel Fiano represents southern Ita... | +NaN | +91 | +20.0 | +Southern Italy | +Fiano di Avellino | +NaN | +White Blend | +Feudi di San Gregorio | +
| 150926 | +150926 | +France | +Offers an intriguing nose with ginger, lime an... | +Cuvée Prestige | +91 | +27.0 | +Champagne | +Champagne | +NaN | +Champagne Blend | +H.Germain | +
| 150927 | +150927 | +Italy | +This classic example comes from a cru vineyard... | +Terre di Dora | +91 | +20.0 | +Southern Italy | +Fiano di Avellino | +NaN | +White Blend | +Terredora | +
| 150928 | +150928 | +France | +A perfect salmon shade, with scents of peaches... | +Grand Brut Rosé | +90 | +52.0 | +Champagne | +Champagne | +NaN | +Champagne Blend | +Gosset | +
| 150929 | +150929 | +Italy | +More Pinot Grigios should taste like this. A r... | +NaN | +90 | +15.0 | +Northeastern Italy | +Alto Adige | +NaN | +Pinot Grigio | +Alois Lageder | +
| + | Id | +SepalLengthCm | +SepalWidthCm | +PetalLengthCm | +PetalWidthCm | +Species | +
|---|---|---|---|---|---|---|
| 0 | +1 | +5.1 | +3.5 | +1.4 | +0.2 | +Iris-setosa | +
| 1 | +2 | +4.9 | +3.0 | +1.4 | +0.2 | +Iris-setosa | +
| 2 | +3 | +4.7 | +3.2 | +1.3 | +0.2 | +Iris-setosa | +
| 3 | +4 | +4.6 | +3.1 | +1.5 | +0.2 | +Iris-setosa | +
| 4 | +5 | +5.0 | +3.6 | +1.4 | +0.2 | +Iris-setosa | +
| + | Id | +SepalLengthCm | +SepalWidthCm | +PetalLengthCm | +PetalWidthCm | +Species | +
|---|---|---|---|---|---|---|
| 145 | +146 | +6.7 | +3.0 | +5.2 | +2.3 | +Iris-virginica | +
| 146 | +147 | +6.3 | +2.5 | +5.0 | +1.9 | +Iris-virginica | +
| 147 | +148 | +6.5 | +3.0 | +5.2 | +2.0 | +Iris-virginica | +
| 148 | +149 | +6.2 | +3.4 | +5.4 | +2.3 | +Iris-virginica | +
| 149 | +150 | +5.9 | +3.0 | +5.1 | +1.8 | +Iris-virginica | +
| + | Museum ID | +Museum Name | +Legal Name | +Alternate Name | +Museum Type | +Institution Name | +Street Address (Administrative Location) | +City (Administrative Location) | +State (Administrative Location) | +Zip Code (Administrative Location) | +... | +Latitude | +Longitude | +Locale Code (NCES) | +County Code (FIPS) | +State Code (FIPS) | +Region Code (AAM) | +Employer ID Number | +Tax Period | +Income | +Revenue | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | +8400200098 | +ALASKA AVIATION HERITAGE MUSEUM | +ALASKA AVIATION HERITAGE MUSEUM | +NaN | +HISTORY MUSEUM | +NaN | +4721 AIRCRAFT DR | +ANCHORAGE | +AK | +99502 | +... | +61.17925 | +-149.97254 | +1.0 | +20.0 | +2.0 | +6 | +920071852 | +201312.0 | +602912.0 | +550236.0 | +
| 1 | +8400200117 | +ALASKA BOTANICAL GARDEN | +ALASKA BOTANICAL GARDEN INC | +NaN | +ARBORETUM, BOTANICAL GARDEN, OR NATURE CENTER | +NaN | +4601 CAMPBELL AIRSTRIP RD | +ANCHORAGE | +AK | +99507 | +... | +61.16890 | +-149.76708 | +4.0 | +20.0 | +2.0 | +6 | +920115504 | +201312.0 | +1379576.0 | +1323742.0 | +
| 2 | +8400200153 | +ALASKA CHALLENGER CENTER FOR SPACE SCIENCE TEC... | +ALASKA CHALLENGER CENTER FOR SPACE SCIENCE TEC... | +NaN | +SCIENCE & TECHNOLOGY MUSEUM OR PLANETARIUM | +NaN | +9711 KENAI SPUR HWY | +KENAI | +AK | +99611 | +... | +60.56149 | +-151.21598 | +3.0 | +122.0 | +2.0 | +6 | +921761906 | +201312.0 | +740030.0 | +729080.0 | +
| 3 | +8400200143 | +ALASKA EDUCATORS HISTORICAL SOCIETY | +ALASKA EDUCATORS HISTORICAL SOCIETY | +NaN | +HISTORIC PRESERVATION | +NaN | +214 BIRCH STREET | +KENAI | +AK | +99611 | +... | +60.56280 | +-151.26597 | +3.0 | +122.0 | +2.0 | +6 | +920165178 | +201412.0 | +0.0 | +0.0 | +
| 4 | +8400200027 | +ALASKA HERITAGE MUSEUM | +ALASKA AVIATION HERITAGE MUSEUM | +NaN | +HISTORY MUSEUM | +NaN | +301 W NORTHERN LIGHTS BLVD | +ANCHORAGE | +AK | +99503 | +... | +61.17925 | +-149.97254 | +1.0 | +20.0 | +2.0 | +6 | +920071852 | +201312.0 | +602912.0 | +550236.0 | +
5 rows × 25 columns
+