Trending questions in Python

0 votes
1 answer

Need help to open excel file and read in Python

You can use pandas module to do ...READ MORE

Jul 22, 2019 in Python by Tina
716 views
0 votes
1 answer

How can you configure python on eclipse?

Install the PyDev plug-in for Eclipse Launch Eclipse. Configure PyDev. Python must be installed to configure PyDev. ...READ MORE

Jul 30, 2019 in Python by Mohammad
• 3,230 points
445 views
0 votes
0 answers

How do you wrap a c++ class in python using SWIG?

What is SWIG? Is there a library ...READ MORE

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

python code to find if an array is monotonic

Hey Harsha, try out this code: def monotonic(a): ...READ MORE

Jun 17, 2019 in Python by Yesha
2,202 views
0 votes
1 answer

NumPy Array Indexing

If you want to create a subarray ...READ MORE

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

Django 1.7: Makemigration: non-nullable field

As the order field is unique, you'll ...READ MORE

May 9, 2019 in Python by SDeb
• 13,300 points
3,865 views
0 votes
1 answer

What are the different types of data types one can use in Python?

Python provides an array of built-in constants, ...READ MORE

May 28, 2019 in Python by Harsh
• 260 points
3,057 views
0 votes
0 answers

pass optional or keyword parameters from one function to another in python?

How can I pass optional or keyword ...READ MORE

Jul 24, 2019 in Python by Hari
603 views
0 votes
1 answer

How to manipulate a numpy?

You can use the below code slice ...READ MORE

Jul 24, 2019 in Python by Hari
561 views
0 votes
1 answer

Can't use read() for html2text?

decode() the content with the charset sent inside ...READ MORE

Jul 3, 2019 in Python by SDeb
• 13,300 points
1,463 views
0 votes
0 answers

Why does -22 // 10 return -3? - Python

Why does -22 // 10 return -3 ...READ MORE

Jul 30, 2019 in Python by Ashish
375 views
0 votes
1 answer

Callable objects approach vs nested scope approach to create higher order functions - python

Using callable objects has a disadvantage over ...READ MORE

Jul 25, 2019 in Python by Vivan
518 views
0 votes
1 answer

Cherrypy vs. Apache/mod_wsgi

In my experience the best performance is ...READ MORE

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

How do you break out of a while loop in python?

Usually the execution moves out of the ...READ MORE

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

What is the use of '==' operator in dictionary in Python?

Yes you can use '==' operator to ...READ MORE

Jul 24, 2019 in Python by Arvind
• 3,040 points
551 views
0 votes
1 answer

Is it possible to create a dictionary with multiple keys for a single value?

One thing that you can do here ...READ MORE

Jul 24, 2019 in Python by Arvind
• 3,040 points
549 views
0 votes
1 answer

Open database connection - python

Hey you can use something like this: import ...READ MORE

Jul 23, 2019 in Python by Kyraa
615 views
0 votes
1 answer

Suing multiple lambda functions together

Yes, lambda functions can be used within ...READ MORE

Jul 26, 2019 in Python by Wajiha
• 1,950 points
447 views
+1 vote
1 answer

How do I find out the sum of digits of a number in Python?

Hi, good question. If you are considering ...READ MORE

Feb 7, 2019 in Python by Nymeria
• 3,560 points
7,718 views
0 votes
1 answer

How can I make a variable private in python?

Python does not have any private variables like C++ or ...READ MORE

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

How to use Python notebooks using Python 3?

This can be done using following steps ...READ MORE

Jul 26, 2019 in Python by Arvind
• 3,040 points
446 views
0 votes
1 answer

Difference between %s and %d in python string formatting??

%s and %d are used for string ...READ MORE

May 28, 2019 in Python by Shabnam
• 930 points
2,985 views
0 votes
1 answer

keras model.fit_generator() several times slower than model.fit()

You may want to check out the ...READ MORE

May 31, 2019 in Python by SDeb
• 13,300 points
2,857 views
0 votes
1 answer

How to eliminate out outliers in a dataframe?

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

Jul 24, 2019 in Python by Shri
514 views
0 votes
1 answer

Copy object in Python

In general, copy.copy() or copy.deepcopy() works perfectly ...READ MORE

Jul 25, 2019 in Python by Tanishq
465 views
0 votes
1 answer

Python table gives NaN when initialized with series

The NaN value you are getting is ...READ MORE

Jul 9, 2019 in Python by Yogi
1,144 views
0 votes
0 answers
0 votes
1 answer

How to add elements to a list in Python?

To initialize an empty list do this: new_list ...READ MORE

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

What are some good web crawlers in Python?

Following are the libraries that can help ...READ MORE

Jul 22, 2019 in Python by Arvind
• 3,040 points
562 views
0 votes
1 answer

Undefined Behaviour in Python

Python evaluates expressions from left to right. ...READ MORE

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

How do I print this list vertically?

You can try the following code: myList = ...READ MORE

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

Generators with plots

Yes, you can. I tried doing it ...READ MORE

Jul 16, 2019 in Python by Wajiha
• 1,950 points
809 views
0 votes
1 answer

Can I blindly jump into using docker in production?

Hey Jasmine If the question was can I ...READ MORE

Jul 23, 2019 in Python by Alia
498 views
0 votes
0 answers

How do you install spyder on anaconda?

Is there a way to work with ...READ MORE

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

Local and Global parameters rules - python

In python, variables that are only referenced ...READ MORE

Jul 24, 2019 in Python by Alia
454 views
0 votes
1 answer

How to install and use myql connector in Python?

You can use pip to search if ...READ MORE

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

What is the purpose of hash function in python?

The hash() method returns the hash value of an object if it ...READ MORE

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

what is webserver in python?

The Apache HTTP Server has been the most commonly ...READ MORE

Aug 2, 2019 in Python by Mohammad
• 3,230 points
442 views
+1 vote
1 answer

Creating a range of dates in Python

Yes, you can do it as follows: import ...READ MORE

Jul 4, 2019 in Python by Wajiha
• 1,950 points
1,265 views
0 votes
2 answers

Check a number is Prime or not in Python

There is an efficient way to write ...READ MORE

Oct 26, 2018 in Python by Priyaj
• 58,090 points
4,590 views
0 votes
1 answer

What happens when you use lambda inside lambda?

Yes you can use lambda inside lambda. ...READ MORE

Jun 19, 2019 in Python by Wajiha
• 1,950 points
1,937 views
0 votes
1 answer

Need a python script to login into a website but username and password are in a txt file (Selenium automation script)

I had a similar requirement. I had ...READ MORE

Jan 31, 2019 in Python by Omkar
• 69,230 points
7,923 views
0 votes
1 answer

Install Kivy dependencies for Ubuntu?

Execute the following commands for Ubuntu 17.10 ...READ MORE

May 31, 2019 in Python by Tripti
2,717 views
+1 vote
1 answer

is it possible to compare a values to a backslash in Python?

The backslash "\" character is used to ...READ MORE

Jun 28, 2019 in Python by Neel
• 3,020 points
1,469 views
0 votes
1 answer

What are the key differences between python and java?

There are a lot of pressing  topics ...READ MORE

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

What does the operator "/=" do in python?

x = 20 res = x /= 5 print(res) The ...READ MORE

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

Example showing a way to create a grouped bar chart with Matplotlib?

Have a look at this: import matplotlib import matplotlib.pyplot ...READ MORE

May 27, 2019 in Python by Bobin
2,874 views
0 votes
1 answer

Generator Expressions vs. List Comprehension

Generator expression resemble list comprehensions. List comprehensions ...READ MORE

Jul 15, 2019 in Python by Wajiha
• 1,950 points
764 views
0 votes
1 answer

Python function to check if a given string is a keyword

You can get the list of keywords ...READ MORE

Jun 17, 2019 in Python by Drishya
1,966 views
0 votes
0 answers

Is game development good in python?

What are the tools and libraries for ...READ MORE

Jul 26, 2019 in Python by Waseem
• 4,540 points
348 views