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
495 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,958 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
309 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,096 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,363 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
454 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,555 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,654 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
797 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
13,025 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
585 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
637 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,174 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
910 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
573 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,424 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,980 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,104 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
420 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
502 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,330 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,698 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,708 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,665 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,490 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,274 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,594 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
664 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
730 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,308 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
652 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,354 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
582 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
655 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,367 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
566 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
346 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
297 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
574 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,470 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,955 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
985 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,635 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
681 views
–1 vote
1 answer

Python program that calculates and prints value according to formula

Try this: import math c = 50 h = 30 value ...READ MORE

Jan 8, 2019 in Python by Omkar
• 69,230 points
4,730 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,056 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,612 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,171 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,555 views