I have a few questions, which are all very related. The main problem here is to convert the amplitude of an audio file to dB scale and I am doing it as below wh
I have made an web app with flask and implemented socket-io in it using Flask-SocketIO but it is continuously using Polling method instead of Web Sockets. My JS
I have a list of objects: List = ['Doc1.xlsx','Doc2.csv','Doc3.pdf'] and a list of their names: List1 = ['Doc1_name.xlsx','Doc2_name.csv','Doc3_name.pdf']. I ne
Code I have that successfully connects to Kafka with an SSL connection in Python 3.6.7 fails when using Python 3.7.3, with error message SSL: WRONG_VERSION_NUMB
I have a simple cmd_str containing a set of lines. Using exec, I can run those lines juts fine. However, running those lines in a separate process when shell=Tr
I have been trying to create a requirements.txt file from the Pycharm terminal but it is adding all unnecessary packages as well. What should I do to show only
I have tried to run this code but get an Attribute Error. Any help would be greatly appreciated. import cv2 import sys (major_ver, minor_ver, subm
I tried to send screenshot, but when I get the screenshot I get this picture on my screen, instead of normal one... What am I doing wrong? Server: elif data.
I'm a python beginner just ran threw a book that includes this MiniProject at the very end.The exercise reads: Your task is to create a deck of cards class. Th
I wanted different part of the program to see only the necessary args parsed. parser = argparse.ArgumentParser() log = parser.add_argument_group() log.add_argum
In version 0.11.0 of Tensorflow Probability, I can define a TransformedDistribution as follows, indicating event and batch shape: mvn = tfd.TransformedDistribut
In version 0.11.0 of Tensorflow Probability, I can define a TransformedDistribution as follows, indicating event and batch shape: mvn = tfd.TransformedDistribut
Can the python black formatter nest long lists and sets? For example: Input coworkers = {"amy", "bill", "raj", "satoshi", "jim", "lifeng", "jeff", "sandeep", "m
Query: I need to replace the 1 old value with the 1 new value for a bunch of columns (not all columns) in a dataframe. The question is about the syntax to be us
I have a csv file that grows until it reaches approximately 48M of lines. Before adding new lines to it, I need to read the last line. I tried
Im really new to Python and am trying to run a decision tree model with the below query: from sklearn.metrics import classification_report, confusion_matrix fro
I am trying to create an async API using threading (Celery is an overkill in my case). To achieve the same, I subclassed the Thread class in following manner. S
Below is the python block code, def compute_hcf(x, y): while(y): x, y = y, x % y return x which I wanted to convert into single line like below, d
Its quite simple but I got stuck. I have two files who need to be identical(even spaces) file #1 is the output from : for i in range(0, 19): print(i)
I want to write a specific python dictionary to csv with header. I have looked at other questions but none of them have the similar dictionary structure as mine