Skip to main content

All Questions

Tagged with
-3 votes
0 answers
18 views

how can I compute the striking force of a football player using python [closed]

in a football match between England and Spain Julius Fueke needs a decisive goal, write a Python program that can compute the striking force of each of the players i tried using the import numpy but ...
yagi's user avatar
  • 1
0 votes
1 answer
62 views

how to conver new key into old in python3 ndb

Here my code new_key= ndb.Key(urlsafe = request.user_key) this is written in python3 ndb this will return us key and we change in urlsafe key = new_key.urlsafe() key.decode(encoding="utf-8&...
Jaskaran Singh's user avatar
1 vote
0 answers
24 views

Runing a script written for python2.7 using subprocess.run in a script written in python3.11

In my company there is a script: install.py that is written in python2.7. The issue I'm writing a script to run this script from my own python script which I've written in python3.11. In the beginning ...
Saar Katz's user avatar
1 vote
2 answers
51 views

Python Pandas data frame column split based on previous unique columns combination [duplicate]

I have a data frame like below: TAG TAG_NAME METRIC METRIC_NAME CAPTURE_DATE MB DB PRO SPACE A 2024-03-01 3 DB PRO SPACE B 2024-03-01 4 DB ...
Shanzid Hossain 's user avatar
1 vote
0 answers
30 views

simple python lambda sorting gives different results on different devices

this is my python code for apache hive udf: #!/usr/bin/python import sys counter=0 delay={"carrier":0, "nas":0,"weather":0, "security":0, "late_aircraft&...
Reungu Ju's user avatar
0 votes
0 answers
87 views

how to run next js and python backend on local server?

i want to run a project on local host , where frontend is built with next.js and backend is built with python, i am attaching package.json file of frontend and backend, package.json file of python ...
Ritu Raj's user avatar
0 votes
0 answers
9 views

Emulator output log for startup failure

Estou tento problema ao coda o beeware. mais especificamente estou tentando rodar o briefcase run android porém estou tento erro.enter image description here briefcase create android briefcase build ...
MF Maximo's user avatar
0 votes
1 answer
25 views

" 'Word2Vec' object has no attribute 'load_parent_word2vec_format' " error

I am trying to run an old code which uses python 2.7, and since it runs on the slow version of Word2Vec I want to update it to Python3 and when I did so I got this error: 'Word2Vec' object has no ...
tina's user avatar
  • 21
1 vote
2 answers
77 views

Large number in python gives infinity

I dealing with data with very large numbers this error appears for example if I am trying to calculate for example: import random import numpy as np import cmath import math import mpmath from scipy....
learning statistics 's user avatar
1 vote
1 answer
47 views

How do I port python2 code using RSA.importKey().decrypt() to python3?

We have a legacy python2 application that uses an RSA private key to decrypt a base64-encoded file. How do we port this to python3? Python2.7 code, this does work: def _unlock_keys(self, ...
KJ7LNW's user avatar
  • 1,801
0 votes
0 answers
51 views

When I run "python .\manage.py runserver" I get this: No Python at '"C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python.exe'

virtual environment activated (env) PS C:\Users\Utilizador\Documents\FSapp> python .\manage.py runserver No Python at '"C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python....
Just do it's user avatar
-1 votes
1 answer
51 views

python multiple input multiple output

I wrote a program that gets 4 input in a line from user and it's in a loop. My problem is that if in different iterations the user want to give less than 4 input the program accept them and save them ...
saeed's user avatar
  • 1
0 votes
0 answers
124 views

I am getting this error "xcode-select: Failed to locate 'python3', requesting installation of command line developer tools." due to python upgrade

revclerx@Revclerxs-Mac-mini ~ % python -v 2024-02-19 22:57:28.212 xcodebuild[15788:1110225] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode....
Gurinder Singh's user avatar
0 votes
1 answer
70 views

How to convert/format characters with python

I'm actually trying to retrieve the title of a webpage with curl. I'm using this code : curl "%URLLink%" --insecure -L > "%HTMLFile%" But I get some unformatted characters and ...
redking's user avatar
0 votes
1 answer
31 views

Python Code to press "show more" on Robinhood, then extract the paragraph in the ABout section for a company

I am trying to write a code to extract the paragraph in the about section on Robinhood for specific companies. The problem is that I need to press the show more button before I can access the full ...
abdullah Hashim's user avatar

15 30 50 per page
1
2 3 4 5
621