Category "python-3.x"

Zeep Client WSDL Request Unexpected Keyword Argument

I'm trying to write a request to a SOAP API based upon an EntityId. I was unable to pull the services listed using python -mzeep because there is a certificate/

Check if pip is installed on Windows using python subprocess

I am using python to check whether pip is installed on the system or not. The code I have written is : subprocess.run(["pip"],shell=True) and I am getting t

Issues installing PyTorch 1.4 - "No matching distribution found for torch===1.4.0"

Used the install guide on pytorch.org on how to install it and the command I'm using is pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorc

How to install from requirements.txt?

I have to install python packages form requirements files thats provided to me. However, when I use pip install -r requirements.txt command I get an error sayin

GET requests to Zendesk API fail using Python 3.x with the HTTP code 401 Unauthorised

I'm simply testing out the capabilities of Zendesk API with the intention of creating a ticket-based Slack application but I cannot seem to get past the simple

Python, print string on the same line for screen output

I am lost on printing a character on the same line. For example card = "--Diamonds--" Output needed: --Diamonds-- --Diamonds-- --Diamonds-- --Diamonds-- -

In django after deleting the posts the post images are still in the directory

In django my posts are deleted but the files are not. I have a image field in the model which i want to deelete whenever the author deletes it. I'm using generi

Python single plot in a for loop without creating a list or array

This may sound like a very naive question. However, to me, it's quite fundamental: Can python plot variables without putting them into arrays or lists? I couldn

Mime Type Issue Loading CSS With Django App

I have a Django app hosted on Heroku, and my stylesheet isn't loading. Now I've taken the time to read the other questions on this issue, but I believe each sit

How do I melt a pandas with custom nam

I have a table like this device_type version pool testMean testP50 testP90 testP99 testStd WidgetMean WidgetP50 WidgetP90 WidgetP99 WidgetStd PNB0Q

How do I melt a pandas with custom nam

I have a table like this device_type version pool testMean testP50 testP90 testP99 testStd WidgetMean WidgetP50 WidgetP90 WidgetP99 WidgetStd PNB0Q

Having trouble computing time complexity of a given function in Python

I am learning about time complexity now, and I am working with BST (Binary Search Trees). This question needs some context and this is a follow up post to this

How do I determine whether an item in python ZipFile is dir or file?

This is my current system, which just looks to see whether there is a period in the path... but that doesn't work in all cases with ZipFile(zipdata, 'r') as

Windows CMD life parsing (reading) and filter output with Python

I open CMD in Windows, go to C:\Users\OM\Downloads\DCS-COINS\Munt.G_DCS-COINS\ and there run command DCS-COINS -v and then I get instantly moving lines with inf

Cannot uninstall numpy,

I'm trying to use pip to uninstall numpy(I also installed pandas, but I seem to have been able to uninstall that). In the case of `numpy, I get the following ou

how to get data in json using urllib3 in python

I am making simple ip-info provider using python-urllib3, how should i fetch data to values import json import urllib3 while True: ip=input("Enter Ip Addr

Some websites dont fully load/render in selenium headless mode

So I have a problem that I have been noticing with selenium when I run it headless where some pages don't totally load/render some elements. I don't exactly kno

Creating New columns from other pandas column

I would like to create a new Column from the genres column. The genres column contains one or multiple genres and I would like to create a column for each genre

Executing SPARQL queries with the wikibaseintegrator package on a local Wikibase instance

I'm attempting to run a SPARQL query using the Python package wikibaseintegrator (version 0.10.0). The program is written as follows: from wikibaseintegrator.wb

How i can extracte x_train and y_train from train_generator?

In my CNN model I want to extract X_train and y_train from train_generator. I want to use ensemble learning, bagging and boosting to evaluate the model. the mai