Category "python"

ImportError: Couldn't import Django. PYTHONPATH

There was an error account.User that has not been installed but I solved this problem. After that, another error says The SECRET_KEY setting must not be empty.

How to correctly generate training data based on percentages?

I have a question. I am currently generating training data for my bayesian network as follows: (also as code down below) -> infected stands for people who a

Sphinx autosummary: dataclass inheritance

Following code makes Sphinx autosummary fail: @dataclasses.dataclass class Foo: bar: int class FooChild(Foo): pass My autosummary template (_template

trying to customize the python nested dictionaries

I've trying to convert list to tuples to customized list to dictionaries. I'm able toto divide admin, pack owner, submitter, consumer and read only. Please chec

mapping excel columns to table column in database with python

json file "mappingdef": [ { "src": "A", "dest": "id" }, {

python sintax problem for solidity compilator

I have problem connected to python. I want to compile solidity files using python. But getting error. import json from solcx import compile_standard, inst

Improve performance of LineString creation, that currently is created by a lambda function

I have a dataframe like this (this example has only four rows, but in practice it has O(10^6) rows): DF: nodeid lon lat wayid 0 1 1.70

How to calibrate an image without a chess board using a map?

I'm learning OpenCV and I have this project where I have to do some analysis on football players in a game. To do so I first need to get their position on the f

When using read_sql_query in pandas, how to write the SQL across multiple lines?

my question is pretty much what it sounds like: Is it possible to write my SQL across multiple lines for ease of reading when using the read_sql_query method pl

Python Pandas- Increase Xtick frequency without matplot

is there a way I could change my xtick frequency without changing my code too much? ax = pred0x.plot.line(x='time', y='load', figsize=(200,100), fontsize=100, c

distance between concentric circle at various angles using opencv

im using the below code to detect concentric circles and measure distance at various angles. outer circle matrix shape is zero and im getting error - valueerro

Unable to read a column of an excel by Column Name using Pandas

Excel Sheet I want to read values of the column 'Site Name' but in this sheet, the location of this tab is not fixed. I tried, df = pd.read_excel('TestFile.xlsx

Kivy .exe file not working - AttributeError: 'NoneType' object has no attribute 'size'

I have an issue when I create an .exe of a Kivy application. The application runs perfectly in .py, but when I create an executable, I receive an error - Attrib

Odoo15 error while converting odoo11 to Odoo15

I want to covert a module from odoo11 to odoo15. But there is an error with ast.py . I'm using python 3.7 This is the error. File "/usr/local/lib/python3.7/ast

Randomizing Sentences In Python

I not long ago finished my project which comments on a video based on a keyword on YouTube, it will pick a random comment using the random library. The program

How to remove the background from an image

I want to remove the background, and draw the outline of the box shown in the image(there are multiple such images with a similar background) . I tried multipl

Use Keras Neural Translation Model (h5 format model) in spacy v3

first 'im not a developer by trade, my developer is not available for health reasons but i have some experience in python/spacy development. I need some guidanc

local variable 'search_keyword' referenced before assignment

I have been working on a search form and it's giving me this error when i open the url or submit the form. I am watching a codemy django tutorial and the only t

How to install TA-Lib On vscode/windows(64bit)

I have installed Anaconda and then cd to my project folder and then I installed TALIB using pip install TA_Lib-0.4.19-cp38-cp38-win_amd64.whl When I run pip fr

Pytorch model weights change when put on GPU

I noticed a very strange behaviour regarding the 3D Resnet by Facebookresearch. Using their sample code from the website, I receive different results, when putt