It's pointing at the less than sign saying invalid syntax
weight = float(input("What is your weight:", ))height = float(input("How tall in inches are you:", ))BMI = weight * 703/heightif person_weight >= 18.5 or <= 25: print("You have optimal...
View ArticleOptimising object retrieval from a large JSON array using jq
I need to retrieve an object at a specific index from a massive JSON array. The array contains 2,000,000 objects and the file size is around 5GB.I've experimented with various approaches using jq in...
View ArticleProcess killed when reading big feather file with pandas due to OOM
I'm trying to read a big feather file and my process get's killed:gerardo@hal9000:~/Projects/Morriello$ du -h EtOH.feather 5.3G EtOH.featherI'm using pandas and pyarrow, here are the...
View Articlehow can I get the same L and D matricies from LDL between matlab and numpy?
I am trying to convert this MATLAB code:function [u,v,w,nodes] = windSimFast(U,f,Su,Sv,Sw,CoeffDecay,Y,Z,varargin)% [u,v,w,nodes] = windSimFast(U,f,Su,Sv,Sw,CoeffDecay,Y,Z,varargin)% simulates the...
View ArticleAzure Function halts without error: Runs locally in VS Code extension but not...
We are facing a difficulty in executing a Function App.This Function was developed in Python 3.9 and is triggered by a timerTrigger that accesses various endpoints of a API, which is public domain and...
View ArticlePythons inspect get source returning unrelated source
I need to get the source of a function 'get_id' and inspect.getsource() is returning the source of the function 'update_creds' and I have no idea whySome specifics about the environment: Its running on...
View ArticleCompare two lists elementwise with OR
I want to compare two lists of the same length by their elements with an OR.>>> [0,0,1,1,0] or [1,1,0,1,0][0, 0, 1, 1, 0]I want the outcome to be[1,1,1,1,0]How can I achieve the desired...
View ArticleRaspberry Pi 4b - Current Raspberry Operating System 32bit - CANNOT AUTOSTART...
I am going crazy here and am mega frustrated. I searched through forums for days now and tried all kind of different solutions. Most frustrating is, how blogposts and answers from 10 years ago are...
View ArticleI was trying to write a Python script to move the cursor to delete browser...
from pynput.mouse import Button,Controllerimport webbrowserimport timemouse=Controller()url = 'google.com'chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'mouse.position =...
View ArticlepySerial reading and writing with arduino
I've got a question. I'm working on an Arduino project, and at this moment, I have a reader that writes all the data from my sensors in Tkinter. However, I also need to control digitalWrite with...
View ArticleBuilding a Python Tkinter GUI without enumerated global variables
I want to have tabs in a notebook and have a way to enter something into a text box at the bottom of the screen and then it to be echoed back out to me. I know I'm on the right path and maybe having it...
View ArticleEnabling and Validating Bit Parity between C++ and Python
tl;dr - With parity enabled on both sides of a c++ controller and python client, messages don't seem to actually care to validate and wondering if I am missing something to setup or if I need to...
View ArticleI cannot get selenium to click on these input radios to save my life on the....
def job_filtering(self): try: print("Clicking on Time Posted filter...") # Click on the "Time Posted" filter time_filter = WebDriverWait(self.driver, 20).until( EC.element_to_be_clickable(...
View ArticleHow to tackle a 'str' not callable error message
State_city = ('Abia'+'Umuahia')Together = State_city'Print' (Together)Why isn't the above code printing on pydroid 3 (I'm using it on my phone)?I tried adding ' but it still won't print. It keeps...
View ArticleModelForm in Django doesn't know attribute is already filled - NOT NULL...
I am making a Django Gym app following this tutorial https://www.youtube.com/watch?v=Mag1n3MFDFk&list=PL2aJidc6QnyOe-fp1m4yKHjcInCRTF53N&index=3I wanted to write a form page that the user (once...
View ArticleCross-origin request not setting cookies, reactJs, Django Backend, Firefox +...
I have a react app, and sending requests as such: const public_key_r = await axios.get("https://eliptum.tech/get-public-key", { withCredentials: true, // This is crucial for cookies to be sent and...
View ArticleFinding node depth from Pandas dataframe for full hierarchical data
I have a Pandas dataframe with sample hierarchical data i.e.data = pd.DataFrame({"manager_id": ["A", "A", "B", "A", "C", "A", "B", "F"],"employee_id": ["B", "C", "C", "D", "E", "E", "E", "G"]} )Given...
View ArticleLong to Wide in Python Pandas Similar to IBM SPSS Data Restructure Cases into...
I have groups of related cases in a dataset that I want to rearrange so that data, which consists of numerical and non-numerical data, are represented as a single case in the resulting data frame....
View ArticleAlgorithms to identify "shared mechanisms" in graph representations of...
Given two semantic knowledge graphs that describe the pathophysiology (nodes are proteins, genes etc., edges are relationships like increase, decrease, associations) of two different diseases, find the...
View ArticleLinear congruential generator
i want to check whether the selected parameters, a, c and m, will generate full period random number or not. i want to write the code for it. I wrote the code for it but it does not work correctly.the...
View Article