Skip to content

Commit 385266a

Browse files
committed
pandas resample
1 parent fb3a53c commit 385266a

File tree

7 files changed

+1354
-1
lines changed

7 files changed

+1354
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Article | Notebook / source code
2929
[Creating conditional columns on Pandas with Numpy select() and where() methods](https://bindichen.medium.com/creating-conditional-columns-on-pandas-with-numpy-select-and-where-methods-8ee6e2dbd5d5) | [notebook](data-analysis/015-pandas-numpy-select-where/pandas-and-numpy-select-where.ipynb)
3030
[How to do a Custom Sort on Pandas DataFrame](https://bindichen.medium.com/how-to-do-a-custom-sort-on-pandas-dataframe-ac18e7ea5320) | [notebook](data-analysis/017-pandas-custom-sort/pandas-custom-sort.ipynb)
3131
[Pandas concat() tricks you should know to speed up your data analysis](https://bindichen.medium.com/) | [notebook](data-analysis/016-pandas-concat/pandas-concat.ipynb)
32+
[Pandas resample() tricks you should know for manipulating time-series data](https://bindichen.medium.com/pandas-resample-tricks-you-should-know-for-manipulating-time-series-data-7e9643a7e7f3) | [notebook](data-analysis/020-pandas-resample/pandas-resample.ipynb)
3233

3334
### Applied Data Analysis and EDA
3435
Article | Notebook / source code

data-analysis/016-pandas-concat/pandas-concat.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Pandas concat tricks\n",
88
"\n",
9-
"This is a notebook for the medium article [Pandas concat() tricks you should know to speed up your data analysis](https://bindichen.medium.com/)\n",
9+
"This is a notebook for the medium article [Pandas concat() tricks you should know to speed up your data analysis](https://towardsdatascience.com/pandas-concat-tricks-you-should-know-to-speed-up-your-data-analysis-cd3d4fdfe6dd)\n",
1010
"\n",
1111
"Please check out article for instructions\n",
1212
"\n",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
date,price
2+
2018-01-31,16.0
3+
2018-05-31,15.5
4+
2018-12-31,10.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
date,price
2+
2018-01-31,16.0
3+
2018-05-31,15.5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
date,num_sold
2+
2018-01-31,5
3+
2018-02-28,17
4+
2018-03-31,5
5+
2018-04-30,16
6+
2018-05-31,12
7+
2018-06-30,12
8+
2018-07-31,2
9+
2018-08-31,9
10+
2018-09-30,5
11+
2018-10-31,15
12+
2018-11-30,18
13+
2018-12-31,35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
date,num_sold
2+
2017-01-02 09:02:03,5
3+
2017-01-02 09:14:13,7
4+
2017-01-02 09:21:00,5
5+
2017-01-02 09:28:57,9
6+
2017-01-02 09:42:14,1
7+
2017-01-02 09:48:50,8
8+
2017-01-02 09:59:23,2
9+
2017-01-02 10:11:01,8
10+
2017-01-02 10:23:56,2
11+
2017-01-02 10:30:14,2
12+
2017-01-02 10:37:56,6
13+
2017-01-02 10:43:01,6
14+
2017-01-02 10:58:28,1
15+
2017-01-02 11:08:20,9
16+
2017-01-02 11:11:13,4
17+
2017-01-02 11:23:08,8
18+
2017-01-02 11:27:24,2
19+
2017-01-02 11:35:59,6
20+
2017-01-02 11:40:22,3
21+
2017-01-02 11:41:25,4
22+
2017-01-02 11:53:36,5
23+
2017-01-02 12:09:55,6
24+
2017-01-02 12:19:21,8
25+
2017-01-02 12:32:18,7
26+
2017-01-02 12:38:58,9
27+
2017-01-02 12:48:48,1
28+
2017-01-02 12:58:49,5
29+
2017-01-02 13:05:26,7
30+
2017-01-02 13:07:59,4
31+
2017-01-02 13:21:46,6
32+
2017-01-02 13:26:59,4
33+
2017-01-02 13:30:19,9
34+
2017-01-02 13:31:41,4
35+
2017-01-02 13:45:22,1
36+
2017-01-02 13:54:53,7
37+
2017-01-02 13:58:43,3
38+
2017-01-02 14:11:21,4
39+
2017-01-02 14:14:49,2
40+
2017-01-02 14:23:13,5
41+
2017-01-02 14:30:19,1
42+
2017-01-02 14:45:53,6
43+
2017-01-02 14:52:13,1
44+
2017-01-02 15:06:21,9
45+
2017-01-02 15:09:28,2
46+
2017-01-02 15:14:36,4
47+
2017-01-02 15:23:52,7
48+
2017-01-02 15:35:09,1
49+
2017-01-02 15:44:09,1
50+
2017-01-02 15:55:52,7
51+
2017-01-02 16:04:21,6
52+
2017-01-02 16:12:27,8
53+
2017-01-02 16:24:02,5
54+
2017-01-02 16:28:33,1
55+
2017-01-02 16:35:03,1
56+
2017-01-02 16:51:37,3
57+
2017-01-02 17:05:57,3
58+
2017-01-02 17:18:01,2
59+
2017-01-02 17:21:39,7
60+
2017-01-02 17:23:15,7
61+
2017-01-02 17:39:33,8
62+
2017-01-02 17:48:46,4
63+
2017-01-02 17:55:26,1
64+
2017-01-02 17:57:42,8
65+
2017-01-02 18:01:38,8
66+
2017-01-02 18:10:01,1
67+
2017-01-02 18:17:07,3
68+
2017-01-02 18:31:30,3
69+
2017-01-02 18:32:38,1
70+
2017-01-02 18:40:42,6
71+
2017-01-02 18:49:48,9
72+
2017-01-02 18:59:54,1
73+
2017-01-02 19:07:09,6
74+
2017-01-02 19:13:18,4
75+
2017-01-02 19:28:43,7
76+
2017-01-02 19:41:30,8
77+
2017-01-02 19:51:10,9
78+
2017-01-02 20:07:23,1
79+
2017-01-02 20:18:08,7
80+
2017-01-02 20:30:15,1
81+
2017-01-02 20:38:40,2
82+
2017-01-02 20:47:22,1
83+
2017-01-02 20:49:55,2
84+
2017-01-02 21:01:40,5
85+
2017-01-02 21:03:25,1
86+
2017-01-02 21:19:17,2
87+
2017-01-02 21:33:39,8
88+
2017-01-02 21:34:38,4
89+
2017-01-02 21:49:06,1
90+
2017-01-02 21:49:56,9
91+
2017-01-02 22:00:02,2
92+
2017-01-02 22:06:16,6
93+
2017-01-02 22:11:36,5
94+
2017-01-02 22:20:39,6
95+
2017-01-02 22:23:26,5
96+
2017-01-02 22:30:44,4
97+
2017-01-02 22:46:36,5
98+
2017-01-02 22:48:08,5
99+
2017-01-02 22:52:19,2
100+
2017-01-02 23:02:25,2
101+
2017-01-02 23:09:23,3

0 commit comments

Comments
 (0)