Trending questions in Python

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
537 views
0 votes
1 answer

Is it possible to read a text file into a string variable and then scrap the newlines?

This can be done easily in Python. ...READ MORE

Aug 7, 2019 in Python by Arvind
• 3,050 points
1,751 views
0 votes
1 answer

SSH into an ec2 instance using boto

Hi @Neha, try something like thus: import boto3 import ...READ MORE

Jun 24, 2019 in Python by Varsha
3,637 views
0 votes
0 answers

what is the use of modules in python ?

Sep 5, 2019 in Python by anonymous
455 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
531 views
0 votes
0 answers

What is python image library?

How to install python image library? READ MORE

Sep 3, 2019 in Python by Waseem
• 4,540 points
501 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, 2019 in Python by Neel
• 3,020 points
806 views
0 votes
1 answer

How to check whether something is a variable or a function in Python?

Suppose you have a variable defined in ...READ MORE

Jul 30, 2019 in Python by Arvind
• 3,050 points
1,965 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, 2019 in Python by Neel
• 3,020 points
785 views
0 votes
2 answers

Check if there exists two elements in the array whose sum is equal to the sum of the entire array

You can try something like this Harsh: def ...READ MORE

Jun 17, 2019 in Python by Ayman
3,739 views
+1 vote
1 answer

How to install scipy for Python 2.7?

Open the command prompt and follow these ...READ MORE

Jul 4, 2019 in Python by Arvind
• 3,050 points
2,983 views
0 votes
0 answers

How to make abstract classes in python?

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

Aug 26, 2019 in Python by Waseem
• 4,540 points
750 views
0 votes
1 answer

Python, mysqldb and unicode

What you get is a bytestring. You ...READ MORE

Aug 1, 2019 in Python by SDeb
• 13,300 points
1,792 views
0 votes
1 answer

What is namespaces in python?

plz do some searches and then ask ...READ MORE

Aug 24, 2019 in Python by Andres
787 views
0 votes
0 answers

How to calculate accuracy in a logistic regression model in python?

What accuracy score is considered a good ...READ MORE

Jul 30, 2019 in Python by Waseem
• 4,540 points
1,865 views
0 votes
1 answer

Python: How to find dimensions of the image?

You can use the Pillow package here, ...READ MORE

Jul 11, 2019 in Python by Likith
2,652 views
0 votes
1 answer

text = _whitespace_only_re.sub('', text) TypeError: expected string or bytes-like object

This seems like an issue with textwrap ...READ MORE

Feb 13, 2019 in Python by Omkar
• 69,220 points
9,042 views
0 votes
1 answer

Which is a good python ide for android devices?

I will suggest you to go for ...READ MORE

Jul 5, 2019 in Python by Neel
• 3,020 points
2,898 views
0 votes
1 answer

BeautifulSoup: Not able to extract multiple tags in a class

You are missing the square braces. You ...READ MORE

Apr 2, 2019 in Python by Firoz
6,944 views
+1 vote
1 answer

Why does print() run only after executing for loop in Python?

Your stdout is line-buffered; this means that it won't ...READ MORE

Aug 1, 2019 in Python by Neel
• 3,020 points
1,684 views
0 votes
2 answers

How to declare constants in python?

In python we don't require to declare ...READ MORE

Aug 18, 2019 in Python by anonymous
• 460 points
943 views
0 votes
1 answer

Edit a function in Python IDLE

No, if you have readline support enabled, ...READ MORE

Jul 23, 2019 in Python by SDeb
• 13,300 points
2,096 views
0 votes
1 answer

How to sort json file ascending in pymongo?

Hey Ahmad, you can get the output ...READ MORE

Aug 14, 2019 in Python by Trisha
1,143 views
0 votes
1 answer

How can I run Jupyter code on Pycharm?

You can do this by installing the ...READ MORE

Aug 8, 2019 in Python by Zulaikha
• 910 points
1,405 views
0 votes
1 answer

What are the key differences between python 2 and python 3?

The key differences include changes in the ...READ MORE

Aug 14, 2019 in Python by Mohammad
• 3,230 points
1,108 views
0 votes
1 answer

how to plot a boxplot in python using seaborn?

following is the syntax for a boxplot ...READ MORE

Aug 13, 2019 in Python by Mohammad
• 3,230 points
1,144 views
0 votes
1 answer

How to start IDLE in windows?

It comes with the official python setup. ...READ MORE

Aug 19, 2019 in Python by Mohammad
• 3,230 points
866 views
0 votes
1 answer

How to install tensorflow in Python?

If you are using Anaconda then you ...READ MORE

Jul 19, 2019 in Python by Neel
• 3,020 points
2,194 views
0 votes
1 answer

Changing variable name in Spyder

Right now there is no particular solution ...READ MORE

Apr 24, 2019 in Python by SDeb
• 13,300 points
5,916 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, 2019 in Python by Waseem
• 4,540 points
584 views
0 votes
1 answer

Is there a built-in module to handle excel files in python?

You can use the module - openpyxl ...READ MORE

Aug 19, 2019 in Python by Mohammad
• 3,230 points
871 views
0 votes
1 answer

How to print pandas Dataframe without index?

You can print the dataframe without index ...READ MORE

Mar 28, 2019 in Python by Shri
7,000 views
0 votes
1 answer

How to perform inheritance on private and protected members in python?

Python does not really have private or ...READ MORE

Aug 19, 2019 in Python by Mohammad
• 3,230 points
781 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, 2019 in Python by Neel
• 3,020 points
683 views
0 votes
1 answer

How to install bottle in python?

You can install bottle on python using ...READ MORE

Aug 19, 2019 in Python by Mohammad
• 3,230 points
979 views
0 votes
1 answer

Pyplot error "only size-1 arrays can be converted to Python scalars"

You can plot the chart by taking ...READ MORE

Jan 28, 2019 in Python by Omkar
• 69,220 points
9,506 views
0 votes
0 answers

Why is selenium css and xpath selector not working?

selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or ...READ MORE

Jul 18, 2019 in Python by Waseem
• 4,540 points
2,164 views
+1 vote
1 answer

Using filter() and map() together

You are not providing the parameters in ...READ MORE

Jul 26, 2019 in Python by Wajiha
• 1,960 points
1,709 views
0 votes
1 answer

What is twisted in python?

Twisted is a framework written in python, ...READ MORE

Aug 13, 2019 in Python by Mohammad
• 3,230 points
965 views
0 votes
1 answer

How can I make an EXE file from a Python program?

Auto PY to EXE - A .py ...READ MORE

Aug 6, 2019 in Python by SDeb
• 13,300 points
1,270 views
0 votes
1 answer

How to eliminate out outliers in a dataframe?

There are various ways we can replace ...READ MORE

Jul 16, 2019 in Python by Dinesh
2,164 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, 2019 in Python by Neel
• 3,020 points
590 views
0 votes
1 answer

How to get a list of built in modules in Python?

simply open the python shell and type ...READ MORE

Aug 1, 2019 in Python by Arvind
• 3,050 points
1,434 views
0 votes
1 answer

How to create a dictionary whose elements are lists?

A simple way to do this is ...READ MORE

Aug 7, 2019 in Python by Arvind
• 3,050 points
1,133 views
0 votes
1 answer

How to get all anchor tags using BeautifulSoup?

Yes, you can do it by using ...READ MORE

Apr 2, 2019 in Python by Kailash
6,599 views
0 votes
1 answer

Replace values in data frame with valued of another dataframe.

Hi @Puneeth, you use something like this: f ...READ MORE

May 30, 2019 in Python by Ashish
4,094 views
0 votes
1 answer

PEP8 space after a comma

I guess the reason that most people ...READ MORE

Jul 20, 2019 in Python by SDeb
• 13,300 points
1,905 views
0 votes
1 answer

Comparing two files contents in python

Considering your file "Unique.txt" does just containt the IP ...READ MORE

Sep 20, 2018 in Python by Priyaj
• 58,020 points
14,964 views
0 votes
0 answers

Graph and Dashboard click and mouse hovers.

Hi, I have one web page which has ...READ MORE

Aug 8, 2019 in Python by anonymous
• 280 points
1,070 views
0 votes
1 answer

Python array multiply

When you multiply a sequence by X in Python, ...READ MORE

Jun 14, 2019 in Python by SDeb
• 13,300 points
3,408 views