Skip to content

Commit bdbc533

Browse files
committed
Pandas and numpy
1 parent 9a26f9e commit bdbc533

File tree

7 files changed

+1428
-29
lines changed

7 files changed

+1428
-29
lines changed

Greater20

+389
Large diffs are not rendered by default.

Greater20.xlsx

34.2 KB
Binary file not shown.

ds road map.rtf

+1,000
Large diffs are not rendered by default.

file2.xlsx

71.6 KB
Binary file not shown.

file3.xlsx

92.8 KB
Binary file not shown.

loops.ipynb

-7
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,6 @@
7474
"\n",
7575
"\n"
7676
]
77-
},
78-
{
79-
"cell_type": "code",
80-
"execution_count": null,
81-
"metadata": {},
82-
"outputs": [],
83-
"source": []
8477
}
8578
],
8679
"metadata": {

pandas.ipynb

+39-22
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,10 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 1,
23+
"execution_count": null,
2424
"id": "07e0d62b",
2525
"metadata": {},
26-
"outputs": [
27-
{
28-
"name": "stdout",
29-
"output_type": "stream",
30-
"text": [
31-
" Album Year\n",
32-
"0 Believer 2018\n",
33-
"1 Masti 2020\n",
34-
"2 Fade way 2009\n",
35-
" Album\n",
36-
"0 Believer\n",
37-
"1 Masti\n",
38-
"2 Fade way\n",
39-
"P-00089\n",
40-
"MARMUL FALCON TRADE & Co\n",
41-
"Believer\n",
42-
"LIFTEX TRADING GP L.L.C-FZ\n"
43-
]
44-
}
45-
],
26+
"outputs": [],
4627
"source": [
4728
"import pandas as pd;\n",
4829
"\n",
@@ -70,10 +51,46 @@
7051
"print(df.iloc[4,3])"
7152
]
7253
},
54+
{
55+
"cell_type": "markdown",
56+
"id": "83438a76",
57+
"metadata": {},
58+
"source": [
59+
"## Pandas : Woking With and Saving Data|||\n"
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": 15,
65+
"id": "6f49e93f",
66+
"metadata": {},
67+
"outputs": [
68+
{
69+
"name": "stdout",
70+
"output_type": "stream",
71+
"text": [
72+
"44.839011583111116 - 9.002 - 0 1.872072\n",
73+
"Name: Price, dtype: float64\n"
74+
]
75+
}
76+
],
77+
"source": [
78+
"import pandas as pd\n",
79+
"fs = pd.read_excel('file3.xlsx');\n",
80+
"value = fs[fs['Price']>20]; # Giving a specific conditons to get specific range values.\n",
81+
"\n",
82+
"value.to_excel('Greater20.xlsx')\n",
83+
"value.to_csv('Greater20')\n",
84+
"pmean = fs['Price'].mean();\n",
85+
"pmedian = fs['Price'].median();\n",
86+
"pmode = fs['Price'].mode();\n",
87+
"print(pmean, '-' , pmedian, '-' ,pmode)"
88+
]
89+
},
7390
{
7491
"cell_type": "code",
7592
"execution_count": null,
76-
"id": "83438a76",
93+
"id": "4607143c",
7794
"metadata": {},
7895
"outputs": [],
7996
"source": []

0 commit comments

Comments
 (0)