Latest questions in Python

0 votes
0 answers

i have a error in automation

from selenium import webdriver chromedriver = "/Users/ROJA/Downloads/chromedriver" driver = ...READ MORE

16 hours ago in Python by anonymous
• 120 points
3 views
0 votes
0 answers

Python error "ZeroDivisionError: float division by zero"

Hey! I am trying to create a ...READ MORE

5 days ago in Python by Hannah
• 15,040 points
47 views
0 votes
0 answers

How to save the import csv file to mongodb using pyspark (or python)?

I have this code, and I want ...READ MORE

5 days ago in Python by Ahmed
• 310 points
21 views
0 votes
1 answer

Install virtualenv - python

Follow these steps to install virtualenv on ...READ MORE

Oct 7 in Python by Harshit
19 views
0 votes
1 answer

Google search using Python

Python provides a module called "google" with ...READ MORE

Oct 3 in Python by Tagya
23 views
0 votes
1 answer

Speech recognition code - Python

Hi Hannah,  Have a look at this code: import ...READ MORE

Oct 3 in Python by Waseem
34 views
0 votes
0 answers

Python error "ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."

I tried upgrading pip using the following ...READ MORE

Oct 3 in Python by Hannah
• 15,040 points
50 views
0 votes
1 answer
0 votes
1 answer

python error "AttributeError: 'NoneType' object has no attribute 'read'"

The microphone needs to be entered using ...READ MORE

Oct 3 in Python by Jack
49 views
0 votes
1 answer

Python error " audio = sr.listen(source) AttributeError: 'module' object has no attribute 'listen'"

You'll have to install the pyaudio module ...READ MORE

Oct 3 in Python by Liala
37 views
0 votes
1 answer

python error " r = sr.Recognizer() AttributeError: 'module' object has no attribute 'Recognizer'"

Hey @Hannh, I had a similar issue. ...READ MORE

Oct 3 in Python by Farheen
14 views
0 votes
1 answer

Python error "ImportError: No module named SpeechRecognition"

Hi @Hannah, replace  import SpeechRecognition as sr with import speech_recognition ...READ MORE

Oct 3 in Python by Yamini
7 views
0 votes
0 answers

KNN algorithm on iris dataset

Hi guys can i please get some ...READ MORE

Sep 26 in Python by anonymous
• 120 points
21 views
0 votes
1 answer

How I do get the data from the <font> tag from a given tr tag?

This should work: from bs4 import BeautifulSoup html_doc='''<tr id="tr_m_1570:240HJY" ...READ MORE

Sep 18 in Python by Omkar
• 67,620 points
28 views
+1 vote
1 answer

I wanted to change the entire row where index is 9 how can i do that

Import the file as a pandas dataframe ...READ MORE

Sep 16 in Python by Rishi
47 views
0 votes
1 answer

How to easily install python ldap in linux?

python-ldap provides an object-oriented API to access LDAP directory ...READ MORE

Sep 16 in Python by Neel
• 3,010 points
39 views
0 votes
1 answer

What is the easiest way to concatenate two lists in Python?

You can use the + operator to combine them: list1 ...READ MORE

Sep 16 in Python by Neel
• 3,010 points
38 views
0 votes
1 answer

How to get score of prediction from random forest?

Well, there's a built-in method for this ...READ MORE

Sep 9 in Python by Arvind
• 2,960 points
30 views
0 votes
0 answers

What is operator overloading in python?

Can you give an example? READ MORE

Sep 9 in Python by Waseem
• 4,480 points
18 views
0 votes
0 answers

What is the difference between == and is operator in python?

What is the basic use of is ...READ MORE

Sep 9 in Python by Waseem
• 4,480 points
35 views
0 votes
1 answer

Can some one explain k-means algorithm with examples?

What is K-means Clustering? K-means (Macqueen, 1967) is ...READ MORE

Sep 9 in Python by Arvind
• 2,960 points
36 views
0 votes
0 answers

why iam getting this error

Sep 8 in Python by NEELAPALA
• 120 points

reopened Sep 9 by Omkar 27 views
0 votes
1 answer

How to import json file to mongodb using pyspark (or python)?

You can use the same format as ...READ MORE

Sep 9 in Python by Karan
50 views
0 votes
0 answers

What is dictionary comprehension in python?

Is it possible to do dictionary comprehension ...READ MORE

Sep 5 in Python by Waseem
• 4,480 points
18 views
0 votes
0 answers

What does super() do in python?

How does it help in multiple inheritance? READ MORE

Sep 5 in Python by Waseem
• 4,480 points
27 views
0 votes
0 answers

what is the use of modules in python ?

Sep 5 in Python by anonymous
16 views
0 votes
1 answer

Is it possible to save python dictionary into json files?

Suppose you have a dictionary in python ...READ MORE

Sep 4 in Python by Neel
• 3,010 points
16 views
0 votes
1 answer

How to write a python script for downloading a video from YouTube and saving it to a directory?

First download pytube using the following code  pip ...READ MORE

Sep 4 in Python by Neel
• 3,010 points
446 views
0 votes
0 answers

How do you run a python script online?

Is there a platform where you can ...READ MORE

Sep 4 in Python by Waseem
• 4,480 points
16 views
0 votes
0 answers

Python Challenge : Writing a file

Write a sign up program for a ...READ MORE

Sep 4 in Python by Waseem
• 4,480 points
13 views
0 votes
0 answers

How is type conversion done in python?

How do you convert a list to ...READ MORE

Sep 3 in Python by Waseem
• 4,480 points
12 views
0 votes
0 answers

What is python image library?

How to install python image library? READ MORE

Sep 3 in Python by Waseem
• 4,480 points
10 views
0 votes
1 answer

Polynomials in Python

You can easily find polynomials of any ...READ MORE

Aug 27 in Python by Wajiha
• 1,920 points
102 views
0 votes
1 answer

Meaning of 10j in SciPy

10j in b = np.r_[3,[0]*5,-1:1:10j] means that the ...READ MORE

Aug 27 in Python by Wajiha
• 1,920 points
12 views
0 votes
1 answer

What is the procedure to find the exact path of python installation in Windows?

This is a very simple thing to ...READ MORE

Aug 26 in Python by Neel
• 3,010 points
21 views
0 votes
1 answer

How to write content of one file to another file in Python?

The following code snippet might solve your ...READ MORE

Aug 26 in Python by Neel
• 3,010 points
20 views
0 votes
0 answers

What are the key advantages of using python over javascript?

Which one should i go for? READ MORE

Aug 26 in Python by Waseem
• 4,480 points
11 views
0 votes
0 answers

How to make abstract classes in python?

How do you make a class, abstract ...READ MORE

Aug 26 in Python by Waseem
• 4,480 points
14 views
0 votes
0 answers

Converting a csv file into html file using pandas file.to_html command in pycharm?

Hello guys, I am having some problems ...READ MORE

Aug 24 in Python by anonymous
25 views
+1 vote
1 answer

how to run list of functions using Thread?

You could import the file with function ...READ MORE

Aug 26 in Python by Vishaka
23 views
0 votes
0 answers

What is the difference between 2*2 and 2**2 in python?

Is there a provision in python to ...READ MORE

Aug 23 in Python by Waseem
• 4,480 points
52 views
0 votes
1 answer

What is namespaces in python?

https://www.programiz.com/python-programming/namespace plz do some searches and then ask ...READ MORE

Aug 24 in Python by Andres
30 views
0 votes
1 answer

What is the purpose of else part in python exception handling?

When an error occurs, or exception as ...READ MORE

Aug 22 in Python by Arvind
• 2,960 points
17 views
0 votes
1 answer

What is the easiest way to implement 'IN' and 'NOT IN' in Pandas dataframe?

You can use pd.Series.isin. For "IN" use: something.isin(somewhere) Or for "NOT ...READ MORE

Aug 22 in Python by Arvind
• 2,960 points
28 views
0 votes
1 answer

How to find the greatest number in a list in Python?

1. By using max function -  highest = ...READ MORE

Aug 21 in Python by Neel
• 3,010 points
21 views
0 votes
1 answer

What is the syntax to compare boolean value in Python?

The opposite of dest in lower.keys() is dest not in ...READ MORE

Aug 21 in Python by Neel
• 3,010 points
15 views
0 votes
1 answer

What is the procedure to install python packages in IPython?

You can use the '!' prefix like ...READ MORE

Aug 21 in Python by Neel
• 3,010 points
12 views
0 votes
1 answer

Is it possible to use variables in SQL statement in Python?

cursor.execute("INSERT INTO table VALUES (%s, %s, %s)", ...READ MORE

Aug 21 in Python by Neel
• 3,010 points
19 views
0 votes
1 answer

Python: “TypeError: Object type <class 'str'> cannot be passed to C code”

You have to pass byte string as ...READ MORE

Aug 20 in Python by Jishan
138 views