Skip to content

Tag: python

select pandas rows based on 2 conditions using or

I have a pandas dataframe filled with values between 0 and 3 and now I would like to either select the max value and return the column label or return ‘undecided’ if a row does only contain 0 and 1 across multiple columns. so far I have the first part sorted: How do I write the second part? My dat…

Error in tabula tabula-py when specifying area parameter

I am getting an error when I specify the area in the following code: This is the error i get: Exception in thread “main” java.lang.UnsupportedOperationException: Can’t add an oblique ruling. Works fine if I do not specify the area. Answer It seems you are not providing the correct coordinate…