Skip to content

Tag: python

How to perform addition of two dataframe columns based on condition

I have two dataframes with different sizes and I am trying to perform an addition of values from a common column found in both dataframes based on matching values in another common column. My first dataframe looks like this: df1 df2 looks like this My expected results is How would I go about this please? My f…

Selenium Select the exact date from Datepciker

This is continuation of this question asked earlier Earlier question I am able to select the date but the problem arises in below scenarios when there is some dates like I tried using XPath not contains but I am getting more than 1 element identified. below is my code I want to select only the dates which are…

Different lines of input and output in Python

I’m currently trying to solve the max value problem. However, I’m now having a hard time getting many outputs at the same time. I try to use input().splitlines() to do it, but I only get one output. The test case and output need to have many lines just as the box’s examples. If anyone can pr…

Tkinter – how to change icon size or make black icon visible

I have two questions: Is it possible to increase somehow size of the icon in tkinter? Because the icon choosen by me is not clear visible when I use root.iconbitmap(..). I also have another icon, but it’s black and is not visible on black taskbar. What can I do? Answer I don’t believe it’s p…