Latest questions in Python

0 votes
1 answer

How I can find array in array?

I guess the given below will b ...READ MORE

Nov 4, 2020 in Python by Gitika
• 65,910 points
318 views
0 votes
1 answer

How I can remove day and time from TimeStamp?

You can follow the below given: '{:%Y-%m}'.format(dt.strptime(str(key), '%Y-%m-%d ...READ MORE

Nov 4, 2020 in Python by Gitika
• 65,910 points
348 views
0 votes
1 answer

Why doesn't the button display below the message?

You can make use of the given ...READ MORE

Nov 4, 2020 in Python by Gitika
• 65,910 points
319 views
0 votes
0 answers

Help: Receive data from tkinter gui and perform mathematical operations between lists

hello friends, I have been working on a ...READ MORE

Nov 4, 2020 in Python by Jessica
• 120 points
751 views
0 votes
1 answer

How to check the value is double in the existing data that when ever the values are double print thats value

Hey, @There, I guess regarding your query you ...READ MORE

Nov 3, 2020 in Python by Gitika
• 65,910 points
685 views
0 votes
1 answer

return [x + y for x, y in zip(a, b)]

Hello @Ahmad, Could you please explain your workaround ...READ MORE

Nov 3, 2020 in Python by Gitika
• 65,910 points
559 views
0 votes
1 answer

Error: wn = trtl.Screen() AttributeError: 'Turtle' object has no attribute 'Screen

Hi, @There, It requires a very simple hack ...READ MORE

Nov 3, 2020 in Python by Gitika
• 65,910 points
2,381 views
0 votes
1 answer

Does Python have a ternary conditional operator?

Think of the conditional expression as switching ...READ MORE

Nov 2, 2020 in Python by Gitika
• 65,910 points
371 views
0 votes
1 answer

Error: Catch a thread's exception in the caller thread in Python

The problem is that thread_obj.start() returns immediately. The child ...READ MORE

Nov 2, 2020 in Python by Gitika
• 65,910 points
5,028 views
0 votes
1 answer

Error: Unhandled exception in thread started by Error in sys.excepthook:

I think the general idea of the ...READ MORE

Nov 2, 2020 in Python by Gitika
• 65,910 points
3,091 views
0 votes
2 answers

How to add image file in html using python

Hi, I have implemented as below from robot.api import ...READ MORE

Feb 9, 2021 in Python by anonymous
9,774 views
0 votes
1 answer

React native for frontend and python is for backend app development it is possible??

Hello @Rithika , Yes, it is possible. For example, you ...READ MORE

Oct 30, 2020 in Python by Niroj
• 82,880 points
5,877 views
0 votes
1 answer

How to install PyTorch?

Here are the steps you can follow:  Install Python. ...READ MORE

Oct 29, 2020 in Python by Gitika
• 65,910 points
968 views
0 votes
1 answer

What is the basic difference between T-Test, Z-Test, Chi-Square and Annova test?

If we are using one numerical variable ...READ MORE

Oct 29, 2020 in Python by Gitika
• 65,910 points
517 views
0 votes
1 answer

How do I update the file name itself in python?

Consider I as the integer value  Increment ...READ MORE

Oct 29, 2020 in Python by anonymous
• 65,910 points
365 views
0 votes
1 answer

i am getting an error on pycharm while installing packages

Hi, @There, $ pip install gevent --pre $ pip ...READ MORE

Oct 27, 2020 in Python by Gitika
• 65,910 points
2,141 views
0 votes
2 answers

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

R u getting the issue while running ...READ MORE

Nov 2, 2020 in Python by anonymous
11,079 views
0 votes
1 answer

Help please on basic python web server

Hi, @There, The error is because there is ...READ MORE

Oct 27, 2020 in Python by Gitika
• 65,910 points
1,532 views
0 votes
1 answer

position error

Hi, @There, The key error generally means the ...READ MORE

Oct 23, 2020 in Python by Gitika
• 65,910 points
807 views
0 votes
1 answer

Is python partially compiled and partially interpreted?

Hi, @Sonali, You can check this out https://www.edureka.co/community/6776/compiled-vs-interpreted-languages, as ...READ MORE

Oct 22, 2020 in Python by Gitika
• 65,910 points
452 views
0 votes
1 answer

ERROR: PyAudio-0.2.11-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.

Hi, @Henll, You should download the version that ...READ MORE

Oct 22, 2020 in Python by Gitika
• 65,910 points
3,655 views
+1 vote
1 answer

How to change the order of DataFrame columns in pandas?

Hi@akhtar, You can rearrange a DataFrame object by ...READ MORE

Oct 20, 2020 in Python by MD
• 95,440 points
641 views
0 votes
1 answer

How to filter Pandas DataFrame by values of columns?

Hi@akhtar, You can filter Pandas Dataframe with the ...READ MORE

Oct 20, 2020 in Python by MD
• 95,440 points
849 views
0 votes
1 answer

what is if __name__ =='__main__: in python

Hello @Joy, '__main__' is the name of the scope ...READ MORE

Oct 20, 2020 in Python by Niroj
• 82,880 points
434 views
0 votes
1 answer

Code for motion detection with opencv Youtube tutorial please

Hey, @Ashay, You can even go through this: https://www.youtub ...READ MORE

Oct 19, 2020 in Python by Gitika
• 65,910 points
458 views
0 votes
1 answer

AssertionError: <class 'numpy.ndarray'>

Hi, @There, The traceback module and sys.exc_info are ...READ MORE

Oct 19, 2020 in Python by anonymous
• 65,910 points
1,728 views
0 votes
1 answer

El return solo me devuelve False en este método

Hola amiga como estas La función no devuelve ...READ MORE

Oct 19, 2020 in Python by Gitika
• 65,910 points
326 views
0 votes
0 answers

TypeError: tuple indices must be integers or slices, not tuple

Im a begginer and im trying to ...READ MORE

Oct 19, 2020 in Python by peyman
• 120 points

edited Oct 19, 2020 by Gitika 900 views
0 votes
1 answer

How to read a HDF file with Pandas?

Hi@akhtar, You can read an HDF file using ...READ MORE

Oct 18, 2020 in Python by MD
• 95,440 points
1,674 views
0 votes
1 answer

How to write a HDF file from a DataFrame?

Hi@akhtar, Hierarchical Data Format (HDF) is a set ...READ MORE

Oct 18, 2020 in Python by MD
• 95,440 points
1,092 views
0 votes
1 answer

How to remove a file using the OS module in Python?

Hi@akhtar, In Python, you can use the os. remove() method to remove ...READ MORE

Oct 18, 2020 in Python by MD
• 95,440 points
872 views
0 votes
1 answer

How to save a Pandas Dataframe to a pickle file?

Hi@akhtar, Python pickle module is used for serializing ...READ MORE

Oct 18, 2020 in Python by MD
• 95,440 points
5,123 views
0 votes
1 answer

IndentationError: expected an indented block

Hi, @Baker, Putting in extra space or leaving ...READ MORE

Oct 19, 2020 in Python by Gitika
• 65,910 points
980 views
0 votes
1 answer

FileNotFound error

PATH is an issue here. It should ...READ MORE

Oct 16, 2020 in Python by anonymous
• 65,910 points
470 views
0 votes
1 answer

What is the difference between visual studio and idle in python programming??

Both are actually IDE-s I don't know ...READ MORE

Oct 16, 2020 in Python by Gitika
• 65,910 points
689 views
0 votes
1 answer

TypeError :Cannot cast Index to dtype int

use numpy  and use .astype(np,int) instead of ...READ MORE

Oct 15, 2020 in Python by Gitika
• 65,910 points
1,353 views
0 votes
1 answer

TypeError: Expected Ptr<cv::UMat> for argument '%s' ''

src is the first argument to cv2.cvtColor. The error you ...READ MORE

Oct 15, 2020 in Python by anonymous
• 65,910 points
7,381 views
0 votes
1 answer

Can’t import TensorFlow. Could not find a version that satisfies the requirement TensorFlow

Basically, a solution would be to install ...READ MORE

Oct 15, 2020 in Python by anonymous
• 65,910 points
4,991 views
0 votes
1 answer

How to install voice recognizer in python?

You can install the Speech Recognition library ...READ MORE

Oct 15, 2020 in Python by anonymous
• 65,910 points
488 views
0 votes
1 answer

Error is "invalid literal for int() with base 10: ' ' "

This error is caused because we try ...READ MORE

Oct 15, 2020 in Python by Gitika
• 65,910 points
2,702 views
0 votes
1 answer

How to convert a list into an array in Python?

Hi@akhtar, You need to import the NumPy module ...READ MORE

Oct 15, 2020 in Python by MD
• 95,440 points
1,404 views
0 votes
1 answer

How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

Oct 15, 2020 in Python by Niroj
• 82,880 points
6,276 views
0 votes
2 answers

How do I convert text file to CSV file with only plain python. Meaning no panda or any other special module?

Steps to Convert Text File to CSV ...READ MORE

Oct 15, 2020 in Python by Abdul Shekh
8,413 views
0 votes
1 answer

TypeError: list indices must be integers or slices, not str

Hi@akhtar, As we know that the index of ...READ MORE

Oct 15, 2020 in Python by MD
• 95,440 points
13,424 views
0 votes
1 answer

What will be the output of below code and why? x=[1,2,3,4,5] print(x.insert(2,3))

If you write x.insert(2,3) and then print x ...READ MORE

Oct 14, 2020 in Python by Gitika
• 65,910 points
3,741 views
0 votes
1 answer

cmd showing the interpreter error and version 3.7 showing?

You can add python3.8 in the environment ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
319 views
0 votes
1 answer

How can we do the below modulo operation in python guys?

Expecting some operations, not loop. As because of ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
429 views
0 votes
1 answer

How can we initialise a variable like this a = -2.331*(e**-16)?

Remove stars and brackets. That's all READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
272 views
0 votes
1 answer

Error like “Your CPU not supported AVX , AVX2”

Your CPU is supported, Only the Binary was ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
857 views
0 votes
1 answer

What is the best online python compiler for running python scripts?

You can use Microsoft azure notebooks to ...READ MORE

Oct 14, 2020 in Python by anonymous
• 65,910 points
895 views