Skip to content

Group dates into list based on value

I have a json object that I’m trying to group item together in. this code returns values grouped by date as the key and then a list of teams and dates like this However, I need it to return and key value pair like this where all the dates for a specific team are in a list as the value

Split Business days in respective month

df1 df2 df i need to calculate 2 things column “Total” based on working days between “From” and “To” and include any holiday from df2. split the “Total” column in respective months (Jan to Dec columns) For part 1 : The column “total” in df1 is calcul…

How to replace an XML node via python

I am new in python and I have a – maybe – stupid problem with XML files (yep, I’ve tried to google the solution but without results). I have to write a program which will replace/switch two things, so first of all, here is the XML data, it looks like this: How in python i could change some_n…