Trending questions in Python

0 votes
0 answers

Is it ok to have multiple versions of anaconda installed on our systems?

I have both 2.7 and 3.5 installed ...READ MORE

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

How can i start working on spyder?

To work with spyder, you must install ...READ MORE

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

What is the best IDE for python to work in linux?

Pycharm ranks the best python ide to ...READ MORE

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

Serving static files on heroku

Try using Amazon s3 for storing static ...READ MORE

Jun 13, 2019 in Python by SDeb
• 13,300 points
3,342 views
0 votes
0 answers

What are the various ways to manipulate a string in Python?

I have a string in Python. I ...READ MORE

Aug 13, 2019 in Python by Arvind
• 3,050 points
682 views
0 votes
0 answers

Is there any console in python that is online and pluggable?

Is there some sort of online live ...READ MORE

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

How to resolve the error while importing cv2 from openCV in python?

I would recommend you go with anaconda ...READ MORE

Jul 31, 2019 in Python by Mohammad
• 3,230 points
1,989 views
0 votes
1 answer

How to access the elements of a dictionary using index ?

Suppose you have a dictionary num = ...READ MORE

Jul 4, 2019 in Python by Arvind
• 3,050 points
2,393 views
0 votes
1 answer

How to perform string operations on every element of a list of strings?

This can be done using list comprehension ...READ MORE

Jul 18, 2019 in Python by Arvind
• 3,050 points
1,772 views
0 votes
1 answer

API key for Copyleaks Python sdk

Your API-KEY is available at your dashboard ...READ MORE

Aug 5, 2019 in Python by Kalgi
• 52,350 points
993 views
0 votes
1 answer

What does the dir() function do in python?

The dir() function returns all properties and methods of ...READ MORE

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

Python in Windows Store apps

I have ported the Python interpreter to ...READ MORE

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

SciPy Create 2D Polygon Mask

You can try the following code: import numpy from ...READ MORE

Apr 22, 2019 in Python by SDeb
• 13,300 points
5,510 views
0 votes
1 answer

How to send information greater than buffer size from server to the client?

complete_info='' while True: msg = ...READ MORE

Jun 27, 2019 in Python by Wajiha
• 1,960 points
2,637 views
0 votes
1 answer

How to rename columns in pandas?

Hi,  To rename columns in pandas, you can ...READ MORE

Aug 9, 2019 in Python by Taj
• 1,080 points
791 views
0 votes
1 answer

Using lambda functions to solve Algebra

Python lambda functions can be used to ...READ MORE

Jun 17, 2019 in Python by anonymous
3,045 views
0 votes
1 answer

Force Python Scrapy not to encode URL

When creating a Request object scrapy applies some url ...READ MORE

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

Ruby equivalent for Python's “try”?

Use this as an example: begin # ...READ MORE

Jul 29, 2019 in Python by SDeb
• 13,300 points
1,222 views
+1 vote
1 answer

Django not found error

Before installing Django make sure you have ...READ MORE

Jun 24, 2019 in Python by Fata
• 1,050 points
2,667 views
+1 vote
1 answer

Scrapping News Website

Hey @Irshad Shaikh! We don't have a ...READ MORE

Aug 8, 2019 in Python by Edureka
• 2,960 points
726 views
0 votes
1 answer

Is it possible to access .NET code written in C# from Python?

If you want to mainly base your ...READ MORE

Jul 18, 2019 in Python by Arvind
• 3,050 points
1,651 views
0 votes
1 answer

assert keyword in python is used for what purpose?

The assert keyword is used while debugging ...READ MORE

May 24, 2019 in Python by Taj
• 1,080 points
3,999 views
0 votes
0 answers

How to read data in a bubble sort algorithm in python?

I am not able to read the ...READ MORE

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

How to find exponent of a number in Python?

Yes you can do it using the ...READ MORE

Jul 2, 2019 in Python by Arvind
• 3,050 points
2,309 views
0 votes
1 answer

End tkinter program - python

You can use the destroy() to close ...READ MORE

Aug 9, 2019 in Python by Barbara
657 views
0 votes
1 answer

What are the arguments of sorted() function in Python?

Sorted() sorts any sequence (list, tuple) and ...READ MORE

Jul 29, 2019 in Python by Neel
• 3,020 points
1,134 views
0 votes
1 answer

How to find the sum of rows in Pandas dataframe?

You can use a combination groupby function with the sum() method. ...READ MORE

May 9, 2019 in Python by Jisha
4,611 views
0 votes
1 answer

Doubt in numpy.vstack

The vstack function in numpy will stack ...READ MORE

Jul 30, 2019 in Python by Esha
1,075 views
0 votes
1 answer

Can we download python from command line?

Open a command prompt window and navigate to the ...READ MORE

Aug 6, 2019 in Python by Mohammad
• 3,230 points
755 views
+2 votes
1 answer

How to check the state of a user given instance id using filters

Seems like the "ec2_con_re.instances" you are using ...READ MORE

Aug 1, 2019 in Python by Aishwarya
913 views
0 votes
1 answer

Is a specific timezone using DST right now?

You can try the following; from pytz import ...READ MORE

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

Web scraping problem

This is because many websites do not ...READ MORE

Jul 31, 2019 in Python by Wajiha
• 1,960 points
1,000 views
0 votes
1 answer

How to manipulate strings in Python?

This can be done is a very ...READ MORE

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

No module named urllib3

It is possible that either urllib3 is ...READ MORE

Jan 24, 2019 in Python by SDeb
• 13,300 points
9,098 views
0 votes
1 answer

How do I specify hexadecimal and octal integers in Python?

To represent an octal integer, precede the octal ...READ MORE

Jul 30, 2019 in Python by Meg
1,054 views
0 votes
1 answer

Convert list into dict in Python

Try using the below-mentioned code, it should ...READ MORE

Jul 24, 2019 in Python by Banu
1,267 views
0 votes
1 answer

How do you read from a file using file handling in python?

To read from a file you can ...READ MORE

Jul 30, 2019 in Python by Mohammad
• 3,230 points
1,175 views
+1 vote
2 answers

Difference: abstract class and interface in Python

If abstract class contains only abstract methods ...READ MORE

Jun 21, 2019 in Python by anonymous
7,664 views
0 votes
1 answer

What is the key difference between self in ruby and self in python?

Ruby and Python are actually very different languages (although ...READ MORE

Jul 30, 2019 in Python by Mohammad
• 3,230 points
1,086 views
0 votes
1 answer

What are data structures in python?

Data structures in python are basically the ...READ MORE

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

Why do lambdas defined in a loop with different values all return the same result?

Here x is not local to the ...READ MORE

Jul 24, 2019 in Python by Haseeb
1,239 views
0 votes
1 answer

wcopyfind equivalent for python

Hi @Ashish, you can use the difflib ...READ MORE

Aug 6, 2019 in Python by Tara
712 views
0 votes
1 answer

Python urllib2 Response header

Try to request as Firefox does. You ...READ MORE

Jun 28, 2019 in Python by SDeb
• 13,300 points
2,356 views
0 votes
0 answers

What is the syntax for an empty while loop in python?

What kind of ambiguities are expected for ...READ MORE

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

heapify returns NoneType

The heapify() method transforms the list in-place. This means ...READ MORE

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

How do I make my own context manager?

Context is an opening file, catching expressions, ...READ MORE

Aug 6, 2019 in Python by Yamini
695 views
0 votes
1 answer

Deploying Flask on Windows in production

Installing on Windows is kind of like ...READ MORE

May 29, 2019 in Python by SDeb
• 13,300 points
3,648 views
+1 vote
1 answer

How to check if a string is in a file, using python?

Hi, Try the below given code: with open('myfile.txt') as ...READ MORE

Jul 5, 2019 in Python by Shabnam
• 930 points
2,031 views
0 votes
0 answers

How i can print and count all the all element when i search like " Automation step by step" in Google using python selenium

I am trying to count all the ...READ MORE

Jul 9, 2019 in Python by anonymous
• 120 points
1,939 views
0 votes
1 answer

Round columns in pandas dataframe

You can now, use round on dataframe The code will ...READ MORE

Jul 4, 2019 in Python by SDeb
• 13,300 points
2,083 views