Trending questions in Python

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
486 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

Pandas DataFrames in a loop, df.to_csv()

can you try something like this? not ...READ MORE

Sep 25, 2018 in Python by Priyaj
• 58,090 points
9,929 views
0 votes
1 answer

Open multiple files using with open() in Python?

Just replace and with , and you're done: with open('a', 'w') as ...READ MORE

Oct 31, 2018 in Python by Priyaj
• 58,090 points
8,350 views
+1 vote
2 answers

What is the difference between classes and labels in machine learning?

Classes and Labels both are almost same things ...READ MORE

Apr 3, 2019 in Python by SA
• 1,090 points
7,058 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
434 views
0 votes
1 answer

Pandas dataframe with multiple lists in Python

You can do it like this import pandas ...READ MORE

Apr 6, 2019 in Python by Esha
1,541 views
0 votes
1 answer

How to parse html file to BeautifulSoup?

Hey. Refer to the following code: driver.get("link") html = ...READ MORE

Apr 2, 2019 in Python by Kirti
1,644 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

how to manage memory in python?

Memory management in python involves a private heap ...READ MORE

May 21, 2019 in Python by Mohammad
• 3,230 points
634 views
+2 votes
3 answers

How can I play an audio file in the background using Python?

down voteacceptedFor windows: you could use  winsound.SND_ASYNC to play them ...READ MORE

Apr 4, 2018 in Python by charlie_brown
• 7,720 points
12,973 views
0 votes
1 answer

Using SignalR server from Python code

There are a few ways and they ...READ MORE

Mar 19, 2019 in Python by SDeb
• 13,300 points
2,160 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
899 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
565 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
566 views
0 votes
1 answer

'foreach' function in Python 3?

Yes, there is a "foreach" in python. ...READ MORE

Oct 24, 2018 in Python by Priyaj
• 58,090 points
8,414 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,097 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,961 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
406 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
489 views
0 votes
1 answer

Reading a CSV file using Python 3

A simple "if" statement should suffice. you ...READ MORE

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

How to get rid of tensorflow verbose messages with Keras?

If you are using TensorFlow 0.12, you ...READ MORE

Jan 24, 2019 in Python by SDeb
• 13,300 points
4,296 views
0 votes
1 answer

Getting friendly device names in python

Regarding Linux, if all you need is ...READ MORE

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

IPC between Python and C#

You can use a simple socket communication, ...READ MORE

Mar 25, 2019 in Python by SDeb
• 13,300 points
1,686 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,259 views
0 votes
1 answer

urllib2 and json

I think you need to specify a ...READ MORE

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

What is the difference between re.search and re.match?

The theoritical approach can be this way, re.match is ...READ MORE

Aug 10, 2018 in Python by Priyaj
• 58,090 points
11,456 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
652 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
715 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
645 views
0 votes
1 answer

What is the equivalent of Django's get_or_create om SQLAlchemy using Python?

As far as I know, there is ...READ MORE

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

how to calculate modulus in python?

calculate modules in python mod = a % ...READ MORE

Apr 1, 2019 in Python by anonymous
1,347 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
563 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
645 views
0 votes
1 answer
0 votes
1 answer

How do you get the logical xor of two variables in Python?

What i found is that you can use ...READ MORE

Aug 10, 2018 in Python by Priyaj
• 58,090 points
11,353 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
344 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
557 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
293 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
571 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 to create Pandas dataframe from Python list?

You can do it like this: import ...READ MORE

Apr 6, 2019 in Python by Likhita
970 views
0 votes
0 answers

how do i use the XOR operator in python regular expression?

can u give an example? READ MORE

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

Is it possible to invert a Numpy boolean array in Python using the tilde operator (~)?

Good question, glad you brought this up. I ...READ MORE

Jan 11, 2019 in Python by Nymeria
• 3,560 points
4,601 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
666 views
0 votes
1 answer

Find tag starting with a particular letter using BeautifulSoup?

Try something like this: for tag in soup.find_all(re.compile("^b")): ...READ MORE

Apr 2, 2019 in Python by Taj
1,051 views
0 votes
1 answer

Need help extracting a schema to make use for an avro file in Python

Hi, nice question. So what I daily use ...READ MORE

Jan 10, 2019 in Python by Nymeria
• 3,560 points
4,594 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

Sort a part of a list in place

You can write it as such: a[i:j] = ...READ MORE

Feb 12, 2019 in Python by SDeb
• 13,300 points
3,156 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 413 views