Skip to content

Tag: python

Lambda function apply on dataframe DOES not contain str

I’m trying to add a condition .apply with a lambda function that pickups up a keyword but ignores values if they contain a specific word “total.” My dataframe: Here’s my code: current col output: Desired col output: Question What am I doing wrong? I have tried the ~ to make it a NOT bu…

How to change the layout of a Tkinter Combobox?

To make the border disapear or simply change it’s color. I tried with highlighttickness or borderwidth but it doesn’t work. So I was told to try with the layouts, the thing is I don’t know how to change the border with the layouts On this pic the border is still visible on the combobox I wan…

Python: Inner Class

I am trying to create a json string from a class and I defined my class as follows: I’m getting an error ‘TypeError: ‘NoneType’ object is not callable’. Is it because I’m setting the Header and Body in the OuterClass definition myself to None? Answer The problem with your c…

Select value from dropdown and click on search

I want they select value for the dropdown from the Ville option and then click on search option for each value but the problem is that they do not select value from ville these is pag link https://www.barreaunantes.fr/annuaire/ enter image description here Answer Your element locator strategy selection isn&#8…

Python Loops result not understanding [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 6 months ago. Improve this question Can …