Most answered questions in Python

0 votes
1 answer

formatting_info=true for xlsx file handling

There are 2 libraries used to handle ...READ MORE

Mar 19, 2019 in Python by Omkar
• 69,230 points
1,063 views
0 votes
1 answer

how to convert a group of strings to integer?

a = ['1','2','3','4'] b = list(map(int,a)) print(b) this is how ...READ MORE

Mar 18, 2019 in Python by Mohammad
• 3,230 points
807 views
0 votes
1 answer

how to delete a file in python?

to delete a file import os os.remove('filename') this will delete ...READ MORE

Mar 18, 2019 in Python by Mohammad
• 3,230 points
645 views
0 votes
1 answer

Using IDE on AWS EC2

You can try Eclipse (its Python IDE ...READ MORE

Mar 18, 2019 in Python by SDeb
• 13,300 points
1,550 views
0 votes
1 answer

Flask-PageDown and MathJax

If you want to use the MATHJAX ...READ MORE

Mar 18, 2019 in Python by SDeb
• 13,300 points
914 views
0 votes
1 answer

I have a code that I want to use alter values between two columns in my dataset

Hi @elvin. I read your script and ...READ MORE

Mar 17, 2019 in Python by Omkar
• 69,230 points
576 views
0 votes
1 answer

Speeding up a numpy loop

You are allocating 10000 lists of size ...READ MORE

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

Display details of importer

Yes, you can perform the same by ...READ MORE

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

What packages to install in Atom editor?

Setting up Atom as an IDE might ...READ MORE

Mar 14, 2019 in Python by SDeb
• 13,300 points
1,944 views
0 votes
1 answer

How do I check if a list is empty?

You can try the following: if not a:   print("List ...READ MORE

Mar 14, 2019 in Python by SDeb
• 13,300 points
599 views
0 votes
1 answer

how do i print only the last two letters in a string using regular expression in python?

$ to match the end of the ...READ MORE

Mar 15, 2019 in Python by Waseem
• 4,540 points
703 views
0 votes
1 answer

what is an else if statement in python?

if condition:    statement elif condition:     statement #this is how you use ...READ MORE

Mar 15, 2019 in Python by Waseem
• 4,540 points
653 views
0 votes
1 answer

How to merge two dictionaries in a single expression?

In Python 3.5 or greater: z = {**x, ...READ MORE

Mar 13, 2019 in Python by Trisha
390 views
0 votes
1 answer

How do I sort a dictionary by value?

If you construct a dictionary with the ...READ MORE

Mar 13, 2019 in Python by Trisha
461 views
0 votes
1 answer

Accessing the index in 'for' loops?

Use enumerate to get the index with ...READ MORE

Mar 13, 2019 in Python by Trisha
493 views
0 votes
1 answer

how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

Mar 12, 2019 in Python by Mohammad
• 3,230 points
954 views
0 votes
1 answer

how do i check for exceptions in python?

use self.assertRaises method as a context manager. def ...READ MORE

Mar 12, 2019 in Python by Mohammad
• 3,230 points
460 views
0 votes
1 answer

datetime.datetime.now() + 1

You can write the code as follows ...READ MORE

Mar 11, 2019 in Python by SDeb
• 13,300 points
510 views
0 votes
1 answer

LDAP Query in Python

You can use the "ldap" module. The ...READ MORE

Mar 11, 2019 in Python by SDeb
• 13,300 points
2,258 views
0 votes
1 answer

No module name scikitplot

To overcome this issue, you need to ...READ MORE

Mar 9, 2019 in Python by Siri
4,604 views
0 votes
1 answer

Does python support the concept of global variables?

In Python, a variable declared outside of ...READ MORE

Mar 12, 2019 in Python by rajesh kumar
661 views
0 votes
1 answer

what is a type error in python?

you get a type error when you ...READ MORE

Mar 8, 2019 in Python by Waseem
• 4,540 points
1,200 views
0 votes
1 answer

No module named __future__

In your /PATH/Python-2.7.x/Lib should be all your ...READ MORE

Mar 7, 2019 in Python by SDeb
• 13,300 points
4,416 views
0 votes
1 answer

Pygtk color for drag_highlight

To make the line around the EventBox, ...READ MORE

Mar 7, 2019 in Python by SDeb
• 13,300 points
652 views
0 votes
1 answer

Which is better if we compare C vs Python?

It depends on what do you expect ...READ MORE

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

how to find files and skip directories in os.listdir

You need to filter out directories; os.listdir() ...READ MORE

Mar 6, 2019 in Python by SDeb
• 13,300 points
9,015 views
0 votes
1 answer

Why am I getting a error when I am printing two different data types in python?

different data type is being used. that ...READ MORE

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

How to extract values from a string or a sequence?

you could use the statements like name[index value ...READ MORE

Mar 6, 2019 in Python by Waseem
• 4,540 points
939 views
0 votes
1 answer

how to install pandas in python

it is very basic to install pandas if ...READ MORE

Mar 6, 2019 in Python by Waseem
• 4,540 points
1,060 views
0 votes
1 answer

How do I do monkeypatching in python?

A print statement does its IO through ...READ MORE

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

Open-Source Forum with API

phpBB would be the first that comes ...READ MORE

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

Difference between Python float and numpy float32

Python's standard float type is a C ...READ MORE

Mar 4, 2019 in Python by SDeb
• 13,300 points
6,013 views
0 votes
1 answer

Read MP3 in Python3

It is easier to convert the file ...READ MORE

Mar 4, 2019 in Python by SDeb
• 13,300 points
3,424 views
0 votes
1 answer

What is a dictionary in Python?

Dictionary can be understood as a key-value ...READ MORE

Mar 4, 2019 in Python by Priyaj
• 58,090 points
433 views
0 votes
1 answer

How to access list in Python?

A list is created by adding comma ...READ MORE

Mar 4, 2019 in Python by Priyaj
• 58,090 points
521 views
0 votes
1 answer

How to use for loop in Python?

There are multiple ways of using for ...READ MORE

Mar 4, 2019 in Python by Priyaj
• 58,090 points
502 views
0 votes
1 answer

How to split a string to array in Python?

This way you can split your string ...READ MORE

Mar 4, 2019 in Python by Priyaj
• 58,090 points
4,676 views
0 votes
1 answer

Add one row to pandas DataFrame

You can try the following : >>> import ...READ MORE

Mar 2, 2019 in Python by SDeb
• 13,300 points
949 views
0 votes
1 answer

Transpose list of lists

You can try the following and see ...READ MORE

Mar 2, 2019 in Python by SDeb
• 13,300 points
990 views
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

Mar 1, 2019 in Python by Pratibha
• 3,690 points
874 views
0 votes
1 answer

What is the purpose of Zope Interfaces?

You can actually test if your object ...READ MORE

Feb 28, 2019 in Python by SDeb
• 13,300 points
794 views
0 votes
1 answer

Print Delimited list

You can try the following and see ...READ MORE

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

How to install python

@Akanksha if you are new to python, ...READ MORE

Feb 28, 2019 in Python by Anvi
• 14,150 points
1,016 views
0 votes
1 answer

What is the use of Tkinter,Flask and Django? What is the main use of them? Can any of them help me in freelancing?

Hey, all the tools that you have ...READ MORE

Feb 27, 2019 in Python by Priyaj
• 58,090 points
11,342 views
0 votes
1 answer

How to remove all characters before a specific character in Python?

Use re.sub. Just match all the chars ...READ MORE

Feb 27, 2019 in Python by SDeb
• 13,300 points
9,760 views
0 votes
1 answer

Debug Pylons application through eclipse

First you can create a new launch ...READ MORE

Feb 27, 2019 in Python by SDeb
• 13,300 points
492 views
0 votes
1 answer

How to change python version into 3.7.2 for entire pycharm jetbrains IDE projects?

Navigate to the Project page, select the configured interpreters ...READ MORE

Feb 27, 2019 in Python by Priyaj
• 58,090 points
2,960 views
0 votes
1 answer

Shift all indices in NumPy array

You can use the following : y = ...READ MORE

Feb 26, 2019 in Python by SDeb
• 13,300 points
4,685 views
0 votes
1 answer

python 'x days ago' to datetime

You just need a timedelta and try ...READ MORE

Feb 26, 2019 in Python by SDeb
• 13,300 points
2,545 views
0 votes
1 answer

How do you configure Django to send mail through Postfix?

You can do this by adding  settings.py ...READ MORE

Feb 25, 2019 in Python by SDeb
• 13,300 points
4,589 views