I have two classes class RegisteredUser(graphene.ObjectType): class Meta: interfaces = (BaseClient, ) name = graphene.String() group = graphen
I am training a faster R-CNN model in pytorch and I want to extract feature vector from roi-heads layer. I am using the following code: model = torchvision.mode
I would like to download some articles from my DOI list automatically (about 1500). Using doi.org I can get a website content for every of them. But the problem
How to get the Token from the user and we pass in its python azure HTTP trigger function app and once the status code is 200 then only it has to go to the main
I can't figure out how to achieve a certain task in my python script. I have a dataframe that contains media coverage for a specific topic. One of my columns na
My Data Frame My Code: a = 10001 b = "01.01.2001" if a == np.any(df["Token_ID"]) and b == np.any(df["Date_of_birth"]): print("yes") else: print("no")
whenever I run this function I can see only the print result of time and date. the lines below do not get executed nor they throw any error. what is the issue?
I have an input file which has following log entires. 200,John,/home,60ms 200,Sarah,/log,13ms 500,Jack,/home,40ms Output: sarah
I've got the following setup.py: import itertools dependencies = { 'minimal': ['numpy', 'requests'], 'option-a': ['scipy'], 'option-b': ['matplotlib'] }
I found that in Python 3.4 there are few different libraries for multiprocessing/threading: multiprocessing vs threading vs asyncio. But I don't know which one
I want to build a cli interface for my application which has nested functionality. Example: ├── ... ├── setup.py └^
I'm using the last version of the aiohttp_pydantic library on a Python3.8 project. When I run MyPy, I have this kind of error : error: Skipping analyzing "aioht
I have this bug/error in selenium. Could you help me figure it out? i've already reinstalled the webdriver and it goes on like this my error DevTools listening
I am trying to implement Recaptcha 2 in a flask web form, however, my form always fails to validate when I have recaptcha enabled. To dig a little deeper I prin
So I'm working on my first ever REST API, so apologies in advance if I've missed something basic. Anyway, I have a function that takes a json request from anoth
I have a dataframe as below, data = [ [ 1, 'AR-123456' ], [ 1, '123456' ], [ 2, '345678' ], [ 3,'Application-12345678901'], [ 3, '1234567890
im super stuck on my assignment i have found a code to make a basic version of this tree but i have no idea how its works. Can someone pls help explain how it w
When I import from tensorflow.keras.preprocessing import image in a single python file it works perfectly. Even in python interpreter console it is imported suc
I want to detect the difference of position between when I left-click in a panel and when I finish clicking (when the left button goes up after the click). I de
in python v3 how do i get the prices of items based on given conditions l3 -> (color price ) & l4->(articles base price ) & l1=(color name) &am