Skip to content

Instantly share code, notes, and snippets.

View barel-mishal's full-sized avatar
👨‍💻
Next Gen Nutrition

Barel M. barel-mishal

👨‍💻
Next Gen Nutrition
  • Israel
View GitHub Profile
@barel-mishal
barel-mishal / Result.md
Last active October 30, 2021 12:18
Custome day start and end

Inpute

DatetimeIndex(['2021-10-10 07:47:00', '2021-10-10 07:47:00',
               '2021-10-10 07:47:00', '2021-10-10 07:47:00',
               '2021-10-10 07:47:00', '2021-10-10 07:47:00',
               '2021-10-10 07:47:00', '2021-10-10 07:47:00',
               '2021-10-10 07:47:00', '2021-10-10 07:47:00',
               ...
               '2021-10-17 09:07:00', '2021-10-17 09:07:00',
 '2021-10-17 09:07:00', '2021-10-17 09:07:00',
@barel-mishal
barel-mishal / Description what function gets.md
Last active October 30, 2021 12:21
Optimized removable of outliers to every feature on each id in the table with Numpy and pandas

If you are searching how to remove outliers fast to of your table try this code

The function gets

pandas DataFrame with id index and numric features

image

calculetion:

the calculation for the removable is 2 standard deviation