Latest questions in Python

0 votes
1 answer

Check python object's data type

Hi @hannah, that's pretty simple. To check ...READ MORE

Nov 18, 2019 in Python by Eric
840 views
0 votes
1 answer

What kind of data suits pandas the most?

Pandas can handle almost all kinds of ...READ MORE

Nov 18, 2019 in Python by Eric
988 views
0 votes
1 answer

While accessing array elements, which is better Pandas or NumPy?

Hi @Hannah, Panda series objects are more ...READ MORE

Nov 18, 2019 in Python by Eric
746 views
0 votes
1 answer

Pandas vs NumPy

Pandas should be used when you are ...READ MORE

Nov 18, 2019 in Python by Aman
1,096 views
+1 vote
0 answers

How to make python selenium program to perform certain actions depending upon the web interface response?

Hi All, I am trying to download files ...READ MORE

Nov 17, 2019 in Python by varunanand
• 130 points
810 views
+1 vote
1 answer
0 votes
0 answers

Operands Could not be Broadcast with Shapes (19,)(0,) — KNN

I am working on how to use ...READ MORE

Nov 10, 2019 in Python by sam
• 120 points
1,307 views
+1 vote
0 answers

Select by date to change value

df_subset looks like this: ...READ MORE

Nov 9, 2019 in Python by Gkeace
• 130 points
890 views
0 votes
0 answers

How can we save the extracted file in a specified folder?

While extracting the data using python selenium, ...READ MORE

Nov 7, 2019 in Python by moumita
• 120 points
636 views
0 votes
0 answers

Difference in the output of NMF.fit and NMF.transform function . Explain the interpretation of the output.

Nov 6, 2019 in Python by Neha
• 120 points

recategorized Nov 6, 2019 by Omkar 726 views
0 votes
1 answer

I am new to Python and trying to get enter in Software domain . Kindly suggest me some major helpful tips

Hi @Rahul. I have been a Python ...READ MORE

Nov 6, 2019 in Python by Sushmita
817 views
0 votes
1 answer

Handling request exceptions while using threads?

There are different places you can add ...READ MORE

Nov 4, 2019 in Python by Richard
2,175 views
0 votes
1 answer

I am trying to view and preprocess a .mhd and .raw image types on jupyter notebook, but I am getting a syntax error.

Hey @tekle,  You cannot use a string in ...READ MORE

Nov 4, 2019 in Python by Payal
3,970 views
0 votes
0 answers

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Hi guys i have below code . ...READ MORE

Oct 30, 2019 in Python by sumanth
• 190 points
12,313 views
0 votes
1 answer

how to convert date field into UTC format (2019-10-29T19:20:30.45Z)

Hey, I think this should do what ...READ MORE

Oct 29, 2019 in Python by Niharika
3,014 views
0 votes
1 answer

How to access table which is in web (using html) and how to get the data of the table using python

Hey. You can use requests and beautifulsoup ...READ MORE

Oct 29, 2019 in Python by Shri
5,167 views
+1 vote
1 answer

How can I delete a file in Python IDLE?

Hey @Starsarwar You have two different codes, they ...READ MORE

Oct 28, 2019 in Python by Kalgi
• 52,340 points
2,789 views
0 votes
0 answers

convert following json to csv using recursively

{  "name": "flare",  "children": [   {    "name": "analytics",    "children": [     {      "name": "cluster",      "children": [       {"name": ...READ MORE

Oct 18, 2019 in Python by ÂbhIshëk
• 120 points
1,415 views
+1 vote
1 answer

how do i get a optimal cutoff value(directly in the form of numeric) from roc curves?

The optimal CutOff value is the point ...READ MORE

Oct 17, 2019 in Python by Saira
3,668 views
0 votes
4 answers

Install Python3 on Mac

Prerequisites You will need a macOS computer with ...READ MORE

Dec 15, 2020 in Python by Roshni
• 10,440 points
20,254 views
+1 vote
2 answers

Python error "ZeroDivisionError: float division by zero"

The error is thrown in this line matchPercentage ...READ MORE

May 21, 2020 in Python by Prabhakar
23,542 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

Oct 9, 2019 in Python by Ahmed
• 310 points
2,663 views
0 votes
1 answer

Install virtualenv - python

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

Oct 7, 2019 in Python by Harshit
946 views
+2 votes
2 answers

Google search using Python

import webbrowser search=input('Search: ') webbrowser.open('https:// ...READ MORE

Dec 25, 2019 in Python by Makhmudov
2,916 views
0 votes
1 answer

Speech recognition code - Python

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

Oct 3, 2019 in Python by Waseem
1,905 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, 2019 in Python by Hannah
• 18,520 points
6,312 views
+1 vote
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, 2019 in Python by Jack
15,015 views
+1 vote
3 answers

AttributeError: 'module' object has no attribute 'listen"

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

Oct 3, 2019 in Python by Liala
8,326 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, 2019 in Python by Farheen
7,934 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, 2019 in Python by Yamini
6,094 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, 2019 in Python by Omkar
• 69,180 points
1,077 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, 2019 in Python by Rishi
1,139 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, 2019 in Python by Neel
• 3,020 points
7,868 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, 2019 in Python by Neel
• 3,020 points
1,479 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 10, 2019 in Python by Arvind
• 3,050 points
1,329 views
0 votes
0 answers

What is operator overloading in python?

Can you give an example? READ MORE

Sep 10, 2019 in Python by Waseem
• 4,540 points
900 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 10, 2019 in Python by Waseem
• 4,540 points
877 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 10, 2019 in Python by Arvind
• 3,050 points
3,881 views
0 votes
0 answers

why iam getting this error

Sep 9, 2019 in Python by NEELAPALA
• 120 points

reopened Sep 9, 2019 by Omkar 1,235 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, 2019 in Python by Karan
2,390 views
0 votes
0 answers

What is dictionary comprehension in python?

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

Sep 6, 2019 in Python by Waseem
• 4,540 points
729 views
0 votes
0 answers

What does super() do in python?

How does it help in multiple inheritance? READ MORE

Sep 6, 2019 in Python by Waseem
• 4,540 points
779 views
0 votes
0 answers

what is the use of modules in python ?

Sep 5, 2019 in Python by anonymous
598 views
0 votes
2 answers

Is it possible to save python dictionary into json files?

You can save the Python dictionary into ...READ MORE

Mar 17, 2020 in Python by Vishal
• 180 points
75,986 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, 2019 in Python by Neel
• 3,020 points
3,073 views
0 votes
0 answers

How do you run a python script online?

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

Sep 4, 2019 in Python by Waseem
• 4,540 points
738 views
–1 vote
0 answers

Python Challenge : Writing a file

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

Sep 4, 2019 in Python by Waseem
• 4,540 points
692 views