Skip to content
Advertisement

Split Business days in respective month

df1

JavaScript

df2

JavaScript

df

JavaScript

i need to calculate 2 things

  1. column “Total” based on working days between “From” and “To” and include any holiday from df2.
  2. split the “Total” column in respective months (Jan to Dec columns)

For part 1 : The column “total” in df1 is calculated using

JavaScript

but this is not acurate and not able to include holiday(df2)in this i tried to directly create dataframe using

JavaScript

but it is giving error.

Advertisement

Answer

You can use bdate_range in a custom function

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement