class Bot: @staticmethod def token(): telegramtoken = '...' return telegramtoken @staticmethod def executar(): import
I have a Collection allRecords as {'name':'tom', 'subjects':'Physics'} {'name':'jerry', 'subjects':'Maths'} I have one json file is testData.json as {names:",t
im super stuck on my assignment i have found a code to make a basic version of this tree but i have no idea how its works. Can someone pls help explain how it w
I want to compare 2 csv files master.csv and exclude.csv and remove all the matching lines based on column1 and write the final output in mater.csv file. master
I have error like this while cleaning text, i just tried to following code from web def remove_pattern(text, pattern): r = re.findall(pattern, text) fo
I recently found some code that calls a function from a different directory like this: modules["module_name"].function(parameters) Then I had a thought about c
I'm using python plugin in Notepad++ and trying to use input() in a script I get this error >>> name=input() Traceback (most recent call last): File "&
Following the directions here using latest/last python 2.7: https://github.com/youtube/api-samples/tree/master/python For the https://github.com/youtube/api-sam
I am trying to install the WACS algorithm which is an extension of macs2 callpeak (available on software page of Perkinslab). In the process, I created a new co
I'm using the Requests library with Python 2.7 and get the following error: Traceback (most recent call last): File "/home/user/Documents/workspaces/controlle
Through this code, I aim to detect an object in real-time that will be put in front of the video camera and classify it. My reasoning is the following I tried t
everyone. I newbie in this field. So, After I finished makemigrations. then I migrate this error code occurs. I try to solve it but still stuck. please guide, I
Trying to install build dependencies with pip which is installing in /usr/local/lib/python2.7/dist-packages As I try to install proceed gives an error Collectin
I'm getting this error: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python
Using the data frame shown below I'd like to create manager to assistant and manager to associate percentages/ ratios based/ per location. I'm looking for the
I have this file, abc.py: def asb(): print("Hello, ") def xyz(): print("World!") In my main.py file, from abc import asb from abc import xyz I want
I have a UNIX script which is used to initialize the environment and properties of the project. It uses python. I had to refer the path. This will be used as a
everyone. I'm really new to Python, so I need some help here. I have a list of folders names inside a .CSV file. All these folders are inside the same path. I n
I am getting an error when I try to run this simple script: input_variable = input("Enter your name: ") print("your name is" + input_variable) Let's say I type
I have a dataframes, I need to add 8 rows above the header of dataframe, I am sharing dataframe and the desired output Dataframe:- Toll No. Vr.name