Skip to content

Tag: python

Right number of letters are not appearing in python tkinter game

I am trying to create a jumbled word but the right amount of letters are not showing when running the code. There’s only 1 letter being displayed and if the user actually inputs the right answer, the code only takes it as a wrong answer. Is there a way to fix this problem? Thank you! Answer O lord how m…

how to use mask using numba @jit

I would like to do simple division and average using jit function where nopython = True. my jit function goes however this throws me an error, what would be the workaround for this? I am trying to do this without the loop, any lights would be appreiciate. Answer numba doesn’t support some arguments for …

Converting prices in a Pandas dataframe

So I have a dataframe with the lines corresponding to different clothing items. I have two columns with prices and the syntax looks like this: price rrp 5.00 8.00 5 7.50 5.0 9.0 I want to convert these so that prices like 5.00/5.0 are converted to 5, but values like 7.50 stay the same. I’ve tried conver…

Using gmail through python without smtp

As of may 30th, smtp is no longer accepted. https://support.google.com/accounts/answer/6010255?hl=en&ref_topic=7188673 What is the new way to make a simple python emailer rather than a full application with the “login with google” option? Not sure why I was asked for the code and error, given …

checking for computers in another dataframe

I have one data frame that outputs hostname and agent_version this is named df_filter output: i have another sccm data frame called df_sccm Name check cs dataframe is in sccm df i am trying to see if my output of the first dataframe is in my second dataframe (df_sccm), when i run it, it just says false, even …