Most voted questions in Python

0 votes
1 answer

Python Pandas: KeyError: False

The reason for this error is that ...READ MORE

May 8, 2019 in Python by Jimmy
10,009 views
0 votes
1 answer

How to replace entire column in pandas dataframe?

Use the dataframe with respective column names ...READ MORE

May 8, 2019 in Python by John
13,558 views
0 votes
0 answers

is there a difference between django and python?

can you give some major differences? READ MORE

May 8, 2019 in Python by Waseem
• 4,540 points
316 views
0 votes
0 answers

how can i contribute to an existing open source project in python?

is there a different platform for this ...READ MORE

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

Is it enough to only create checksum of a zip package instead of each file?

I assume you are asking about the ...READ MORE

May 8, 2019 in Python by SDeb
• 13,300 points
2,944 views
0 votes
0 answers

Does Python's SQLAlchemy support server side cursor?

I want to query a MSSQL database ...READ MORE

May 8, 2019 in Python by ana1504.k
• 7,910 points
1,123 views
0 votes
0 answers

how to add a header to a python request module?

can you give the syntax and an ...READ MORE

May 7, 2019 in Python by Waseem
• 4,540 points
303 views
0 votes
1 answer

how do i use the enumerate function inside a list?

Enumerate() method adds a counter to an ...READ MORE

Nov 16, 2021 in Python by Ruhan Siddiqui
2,919 views
0 votes
1 answer

pip wheel conditional dependencies

With the latest version (2017) of the ...READ MORE

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

Python 3.x on python(x,y)?

You can make Python 2 behave the ...READ MORE

May 7, 2019 in Python by SDeb
• 13,300 points
1,914 views
0 votes
0 answers

how do sort the columns in a dataframe using the pandas?

can you give an example using dataframe? READ MORE

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

how do i get the list of all the keys in my dictionary?

my_dict = {'one': 'first', 'two': 'second', 'three': ...READ MORE

Sep 30, 2020 in Python by VJ_python
550 views
0 votes
1 answer

Django session doesn't work in Firefox

You can try this: request.session.modified = True I hope ...READ MORE

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

Exiting a multiprocessed python application safely

I ended up creating a Pipe for ...READ MORE

May 6, 2019 in Python by SDeb
• 13,300 points
1,512 views
0 votes
0 answers

how do i install django in my system for the project?

can you tell me the procedure for ...READ MORE

May 3, 2019 in Python by Waseem
• 4,540 points
484 views
0 votes
0 answers

how do i check the version of opencv?

it there a command to run in ...READ MORE

May 3, 2019 in Python by Waseem
• 4,540 points
529 views
0 votes
1 answer

MatPlotLib Scatterplot removal

One of the scatterplot object's methods is ...READ MORE

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

Obtaining stack frame

inspect.stack() will get you the current stack ...READ MORE

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

what does a conditional operator in python do?

Conditional operators in python is same as ...READ MORE

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

QKeyPress event in PyQt

You should check event.isAutoRepeat() to determine if ...READ MORE

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

Trouble with map()

You are using python 3 which returns ...READ MORE

May 2, 2019 in Python by SDeb
• 13,300 points
432 views
0 votes
2 answers

Django forms in ReactJs

Did you ever find a solution for ...READ MORE

Feb 6, 2020 in Python by martin
2,932 views
0 votes
1 answer

How to go to top frame in pdb (python debugger)

You can use a PdbExtension for this. See https://github.com/fschulze/pytest-pdb/pull/5 where ...READ MORE

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

Implementing a SAML client in Python

I know you are looking for a ...READ MORE

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

PyPI index vs simple index

The "simple" index protocol is read-only, intended ...READ MORE

Apr 29, 2019 in Python by SDeb
• 13,300 points
900 views
0 votes
2 answers

Invalid Token in Python

in python version 2.7,3.6.8 you can't write ...READ MORE

Jun 25, 2020 in Python by ker
6,822 views
0 votes
1 answer

Installing second python on Debian

Get the Python 2.7.1 sources and compile ...READ MORE

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

Writing a help for python script

You can use argparse. For example, with test.py: import ...READ MORE

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

Retrieving all Cookies in Python

Here is an example through which you ...READ MORE

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

Get dimensions of a video file

You can try using mediainfo from python. ...READ MORE

Apr 24, 2019 in Python by SDeb
• 13,300 points
565 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,351 views
0 votes
1 answer

Is an array a view of another?

The array has a base attribute, as ...READ MORE

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

kafka consumer in R

As there is a C++ API for ...READ MORE

Apr 23, 2019 in Python by SDeb
• 13,300 points
920 views
0 votes
0 answers

is there a way to run android using python?

can you give a few sample projects ...READ MORE

Apr 22, 2019 in Python by Waseem
• 4,540 points
342 views
0 votes
1 answer

how to refer to a parent method in python?

If you know you want to use ...READ MORE

Apr 22, 2019 in Python by SDeb
• 13,300 points
782 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,175 views
0 votes
0 answers

How to add "," in Json list (python) . Example ["A", "B"]["c", "d"] --> ["A", "B"],["c", "d"]

Apr 18, 2019 in Python by Ashish Mishra

recategorized Apr 19, 2019 by Omkar 411 views
0 votes
0 answers

what is a queue in python?

can you give an example? READ MORE

Apr 17, 2019 in Python by Waseem
• 4,540 points
360 views
0 votes
0 answers

what is the scope of the variable in a conditional statement?

what are global and local variables in ...READ MORE

Apr 17, 2019 in Python by Waseem
• 4,540 points
553 views
0 votes
1 answer

splitting and concatenating a string

You can try the following code in ...READ MORE

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

Python Gtk.Entry placeholder text

Starting with Gtk+ 3.2 it's possible to ...READ MORE

Apr 17, 2019 in Python by SDeb
• 13,300 points
898 views
0 votes
0 answers

I want to extract particular field from nested streaming json that is published through kafka bus.

I have created my kafka consumer. Now ...READ MORE

Apr 17, 2019 in Python by Ash
570 views
0 votes
1 answer

Compiling Python

You can use the following: python yourfile.py You have ...READ MORE

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

How to read numbers from file in Python?

Assuming you don't have extraneous whitespace: with open('file') ...READ MORE

Apr 16, 2019 in Python by SDeb
• 13,300 points
7,248 views
0 votes
1 answer

Linter pylint is not installed

Open a terminal (ctrl+~) Run the command pip ...READ MORE

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

how do i change to lowercase letters in strings?

use lower() for lowercasing.example: "ALIREZA".lower() > ...READ MORE

Apr 15, 2019 in Python by Alireza Bahrami
644 views
0 votes
2 answers

how can i randomly select items from a list?

You can also use the random library's ...READ MORE

Apr 9, 2020 in Python by Patrick
4,930 views
0 votes
1 answer

Escaping strings for use in XML

You can try the following: from xml.dom.minidom import ...READ MORE

Apr 15, 2019 in Python by SDeb
• 13,300 points
713 views
0 votes
0 answers

what is the logical AND operator in python?

how do i use it in a ...READ MORE

Apr 12, 2019 in Python by Waseem
• 4,540 points
378 views
0 votes
0 answers

how can i make a python chatbot

can you give me any reference to ...READ MORE

Apr 12, 2019 in Python by Waseem
• 4,540 points
664 views