Latest questions in Python

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
448 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,949 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,786 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,683 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
915 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,840 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
414 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,824 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
579 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
570 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,373 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
495 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
929 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
345 views
+1 vote
0 answers

how is python better or faster than c++?

key features with an example? READ MORE

Apr 22, 2019 in Python by Waseem
• 4,540 points
294 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
791 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,188 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 415 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
364 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
562 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
577 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
906 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
572 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
649 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,263 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,890 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
651 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,952 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
726 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
382 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
676 views
0 votes
1 answer

How to generate urls in django?

If you need to use something similar ...READ MORE

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

How do sets work in Python?

Define the __hash__ method to return a ...READ MORE

Apr 12, 2019 in Python by SDeb
• 13,300 points
586 views
0 votes
0 answers

what is multiprocessing in python?

can you give an example? READ MORE

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

what is a split function in python?

use of split function in python  At some ...READ MORE

Apr 22, 2019 in Python by rajesh
• 1,270 points
657 views
0 votes
1 answer

Interactive Ipython Notebooks on Heroku

From what I understand, you have 2 ...READ MORE

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

HTML to RTF string using Python

RTF seems a dicey format to convert ...READ MORE

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

how do i perform XML parsing in python?

can you give me the python code ...READ MORE

Apr 10, 2019 in Python by Waseem
• 4,540 points
396 views
0 votes
0 answers

what is the procedure to get the hashmap in python?

can you give an example as well? READ MORE

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

stdout to tkinter GUI

You need to make a file-like class ...READ MORE

Apr 10, 2019 in Python by SDeb
• 13,300 points
4,436 views
+1 vote
1 answer

Django model iterate fields

You can try the following: getattr(foo.__class__, <field_name>)   This should ...READ MORE

Apr 10, 2019 in Python by SDeb
• 13,300 points
4,773 views
0 votes
1 answer

Can't pickle defaultdict

A module-level function is a function which ...READ MORE

Apr 8, 2019 in Python by SDeb
• 13,300 points
2,030 views
0 votes
1 answer

Mini-languages in Python

Pyparsing is handy for writing "little languages". ...READ MORE

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

Pandas iloc printing whole row instead of cell value.

The syntax you are using is wrong. ...READ MORE

Apr 8, 2019 in Python by Hari
3,565 views
0 votes
1 answer

Not able to print cell value by index.

You have wrongly indexed. The index you ...READ MORE

Apr 8, 2019 in Python by Ganesh
392 views
0 votes
1 answer

Python Pandas Dataframe: set_value is deprecated and will be removed in a future release

The set_value function is deprecated and you will ...READ MORE

Apr 8, 2019 in Python by Jai
15,475 views
+1 vote
3 answers

How to change/update cell value in Python Pandas dataframe?

You can use the at() method to ...READ MORE

Apr 8, 2019 in Python by Kunal
146,633 views
0 votes
1 answer

How to get value in Pandas dataframe using index?

You can use the iloc method to do ...READ MORE

Apr 8, 2019 in Python by Rohit
7,685 views
0 votes
1 answer

How to find the index of a particular value in a dataframe?

First, use the dataframe to match the ...READ MORE

Apr 8, 2019 in Python by Esha
275,837 views
0 votes
1 answer

Pandas dataframe index range

You can print the range of pandas ...READ MORE

Apr 8, 2019 in Python by Karan
2,865 views