I have a sequence is like this, seq = [[[“A”,”AA”,”AB”],[0,1,2,3]], [[“B”,”BB”,”BC”],[1,2,3]], [[“C”,”CA”,”CB”],[0,1,2,3]]] I wanted to convert this to something like below [[[‘A’, ‘AA…
How to convert python function to rest api
I have the following code in python. Now, I need to convert this code into rest api. The objective is to take the value of ‘val’ from the user on the webpage using a slider input. P.S. – Mongo Server is being used. Can anyone tell me how to do that and convert this code. It’s just that…
Adding the app made by pyinstaller to the windows app list
I have a question… If I create an app using pyinstaller and turn it into an exe, I want the app added to the windows app list in the start menu…Here: App list in start menu How do I do this…It’s fine even if I need to add something to my code. I can compile it again. Please help thanks…
Modifying the contents of a list Python
Here’s the coursera Google question prompt that I’m having issues with: The skip_elements function returns a list containing every other element from an input list, starting with the first element. Complete this function to do that, using the for loop to iterate through the input list Original Cod…
How to monitor multiple assets at the same time with a trading robot?
I am developing a trading robot in Python 3.8 and I need to know if you can give me any ideas to monitor multiple open orders simultaneously. The situation is as follows: When you want to sell an asset, the robot can monitor conditions permanently and easily evaluate the indicators to place the sell order (li…
How to concatenate dataframes without overwriting column values
I am trying to create a list of DataFrames in a for loop, and then concatenate them outside of the for loop and write to excel. I have gotten the code to be close, but for some reason the column created inside the for loop ends up being the final value rather each individual value as it loops through. I
How to run python scripts in another directory, without writing scripts to disk?
Suppose I have two python scripts methods.py and driver.py. methods.py has all the methods defined in it, and driver.py does the required job when I run it. Let’s say I am in a main directory with the two files driver.py and methods.py, and I have n subdirectories in the main directory named subdir1,sub…
input results in an EOFError only while in a different thread
The below code raises an EOF exception on the input statement. output although if mainloop is executed in the current thread, the error does not occur output: Answer The problem cannot be solved. I have looked online and the only other thign that is related to this is this other stackoverflow question.https:/…
Using curve_fit to a function defined by indefinite integral in Python
I’m trying to make a code to fit 2 curves with 5 parameters to real data. They are shown here: The first curve only depends on a,b and gamma. So I decided to use curve_fit once to these 3 (which works) and then use it again on the second curve to adjust the last two alpha and k_0. Problem is
Printing pandas df without column name
I’ve been trying to open a .csv, read it in pandas, and print it without the column name. The code I have Outputs something like this How would I make it so values equal only 12343 and not Value 12343 Answer Try: