Ngrok fails to maintain the users' Sessions in Python Flask

I am using Flask Sessions in my Python 3.6 code to store users information. The site is working great when testing it locally and I am able to retrieve the information stored in the session. However

View details »

“SyntaxError: invalid syntax” : &gt , &lt, … replacement code?

I'm coding in Python 3 a crossover strategy for trading MSFT, I have input the following code and I'm getting a syntax error. Can you tell me what the correct code should be? I've tried changing &g

View details »

Is it possible to get numerical values from a Google trend plot in Python 3?

I would like to get the numerical values from different queries once plotted Google trends using Python 3. I am using three different queries (e.g. 'cat', 'dog', 'bird') and I would like to find s

View details »

Why is the code below resulting in an empty array? [duplicate]

Long story short, I'm trying to create an Instagram python scraper, that loads the entire page and grabs all the links to the images. I have it working, only problem is, it only loads the original 1

View details »

I have a problem creating a session with requests

I'm trying to create a session with the requests library, and I am almost sure that everything is fine with my code, but it still login as a guest, and not using the username and password that I giv

View details »

Or problems in python

i'm hard coding a profanity filter and i've got a problem the list of words are not being registered the code only realizes the first word in the list i don't know why its doing this please help i

View details »

what does the ksize in sobel filter mean?

I just want to know what does the ksize actually signify and how does it alter the effect of the filter i have tried giving it the values of 1 3 5 and saw varying results sobely=cv2.Sobel(frame,c

View details »

How to invoke a java program with classpath from Python 3.x

I am trying to execute an external java program from a python 3.7 program using the java command with classpath. I am using subprocess.Popen module in Python. Somehow I am not able to get it working

View details »

xlwings error: not opening excel workbook getting an error upon call wb.open

xlwings works fine on my computer, but when I try to transfer the same set up to another computer it seems to not open correctly giving me this error Traceback (most recent call last): File "C:\Us

View details »

discover how many lists are inside a value

my_dict = {"fruits":["apple", "orange", "grape", "maracuya", "pineapple"] ,"countries": [["India", "China", "Brazil", "Lesotho", "Nepal"], ["Spain", "Italy", "Japan", "Indonesia", "Russia"], ["Germa

View details »

How to extract a character from a string in python3

I have a variable T in he form YYYY-MM-DD_HH:00:00, where YYYY is the 4-digit year, MM is the month and HH is the hour. I want to extract individual fields. Firstly when I do: print("T = ",T) I g

View details »

How to list dependencies of a program (python)?

So I want to generate a summary of all packages used in a program along with the versions. Language: python Suppose I have a program like import numpy import tensorflow import pandas Is there

View details »

Computing average shape of curves

I have recordings of stroke pressure traces. One stroke consists of one or more timestamps and associated pressure values. Some strokes also only contain a single pressure value. An example of 3 str

View details »

Interpreting robust linear regression results in Python

Trying to understand the results from robust linear regression. I'm trying the following code: xx = np.random.rand(100, 1 )*50 yy = np.random.rand(100, 1) rlm_res_fake = sm.RLM(xx, yy, M=sm.robust.

View details »

Loop Inside .Format()

I'm creating a small madlibs game. I have a class that holds the interpolated string. I get input form users which I put into a list of words I'll use with interpolated string. Now, I can do the

View details »

Python typing for variable declaration inside __init__

I'm wondering if this is the correct way to use type checking inside __init__. I'm setting these variables to 'empty' as they will be set within other methods. Is that the best practice way when usi

View details »

How to combine two dataframe based on column?

I have two data frame. Data frame 1: Name city pincode XXX Salem 636004 Yyy harur - Data frame 2: City pincode Harur 636905 Output: Name city pincode XXX Salem 636004 Yyy harur 636905

View details »

The Addition in my python code won't work the way I want it to. Can anyone explain why?

I'm using Pycharm and I'm coding something that asks you questions. This is the code: https://repl.it/@NateyBoi/Bitch-Lasagna the addition doesn't seem to work. So you type your name and then type

View details »

Python 3 Count number of rows in a CSV

Im having trouble getting the row count in a python 3 environment after migrating from 2.7. After several attempts the number of rows returned gives one. How do I get around a DeprecationWarning: 'U

View details »