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
431 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,927 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,759 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,662 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
897 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,820 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
404 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,811 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
563 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,342 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
486 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
919 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
341 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
291 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
781 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,169 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
358 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
558 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
896 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
642 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,245 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,877 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,924 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
711 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
374 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
662 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,970 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
579 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
367 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
647 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,096 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,622 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
394 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
427 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,410 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,750 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,001 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
549 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,546 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
389 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,440 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,571 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,643 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,088 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,837 views