Trending questions in Python

0 votes
1 answer

Can't Click an Element in Python Selenium After Successfully Finding It

I've encountered this problem of not being ...READ MORE

Oct 4, 2018 in Python by Priyaj
• 58,020 points
8,399 views
+1 vote
2 answers

Speech (audio file, wav) to Text - getting timed out

I think the error you are getting ...READ MORE

Nov 27, 2018 in Python by Omkar
• 69,220 points
5,958 views
0 votes
0 answers

how can i read from a stdin?

can you give an example? READ MORE

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

Find a file in python

you can use os.walk in the following ...READ MORE

Mar 27, 2019 in Python by SDeb
• 13,300 points
821 views
0 votes
0 answers

how can i pause a python program?

can you give the syntax ? READ MORE

Apr 5, 2019 in Python by Waseem
• 4,540 points
469 views
0 votes
2 answers

what is null in python?

In python no primitive data types. python treats as ...READ MORE

Mar 13, 2019 in Python by rajesh kumar
1,465 views
0 votes
1 answer

Problem with module xlsxwriter

Even if it looks like the module ...READ MORE

Jan 23, 2019 in Python by charlie_brown
• 7,720 points
3,540 views
0 votes
1 answer

Speeding up a numpy loop

You are allocating 10000 lists of size ...READ MORE

Mar 15, 2019 in Python by SDeb
• 13,300 points
1,298 views
0 votes
0 answers

when do i use open in python?

also, give an example? READ MORE

Apr 2, 2019 in Python by Waseem
• 4,540 points
539 views
0 votes
0 answers

how to do round of an integer in python?

is there a function or method that ...READ MORE

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

how to execute python scripts in windows?

On Windows, To run a python module without typing "python", --> ...READ MORE

Mar 27, 2019 in Python by Mohammad
• 3,230 points
730 views
0 votes
1 answer

how to convert a group of strings to integer?

a = ['1','2','3','4'] b = list(map(int,a)) print(b) this is how ...READ MORE

Mar 18, 2019 in Python by Mohammad
• 3,230 points
1,115 views
0 votes
1 answer

Python - Use unique element from a set

The best way to achieve this by ...READ MORE

Mar 27, 2019 in Python by Mugdha
• 600 points
747 views
0 votes
1 answer

Pandas row in printing whole structure instead of value.

Try this code, it should print only ...READ MORE

Mar 28, 2019 in Python by Siri
671 views
0 votes
0 answers

how to remove overlapping boundaries in matplotlib?

how do i remove overlapping boundaries in ...READ MORE

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

socket.shutdown vs socket.close

Once a socket is no longer required, ...READ MORE

Jan 29, 2019 in Python by SDeb
• 13,300 points
3,172 views
0 votes
1 answer

is it possible to do method overloading in python?

You cannot have two methods with the ...READ MORE

Mar 26, 2019 in Python by Mohammad
• 3,230 points
785 views
0 votes
1 answer

How can I prevent brute force login attacks using Django in Python?

Hi. Django-axes is an already existing application ...READ MORE

Feb 15, 2019 in Python by Nymeria
• 3,560 points
2,441 views
0 votes
1 answer

How to access each pandas row at a time?

The code you are using will iterator ...READ MORE

Mar 28, 2019 in Python by Karan
615 views
0 votes
1 answer

what is a type error in python?

you get a type error when you ...READ MORE

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

Need help bootstrapping Python module installation on Amazon EMR

Hello! The easiest way to definitely do this ...READ MORE

Feb 11, 2019 in Python by Nymeria
• 3,560 points
2,563 views
0 votes
2 answers

what is the procedure to the version of python in my computer?

Execute the following command on your terminal: python ...READ MORE

Mar 20, 2019 in Python by Alia
944 views
0 votes
1 answer

How to remove the duplicate values in a list?

a = [10,20,30,40,10,20,30,40,30,40,50,60] s = set(a) c = list(s) print(c) this ...READ MORE

Mar 20, 2019 in Python by Mohammad
• 3,230 points
922 views
+3 votes
2 answers

What does Python _init_ and self do?

Hey @Anirudh!  Self The self keyword is used to access ...READ MORE

Oct 31, 2018 in Python by Omkar
• 69,220 points
6,791 views
0 votes
0 answers

how can i print a value without newline?

can you give an example? READ MORE

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

how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

Mar 12, 2019 in Python by Mohammad
• 3,230 points
1,235 views
0 votes
0 answers

how to deploy bluk python yamls on kubernetes using jinja template

1.how to deploy  python  services yamls  or ...READ MORE

Mar 19, 2019 in Python by devops learner
959 views
0 votes
1 answer

Batch Paypal Payments

Yes. Basically you use the mass-pay API ...READ MORE

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

How to list only text files in a directory using python?

Well, you are using a complex way. ...READ MORE

Feb 4, 2019 in Python by Omkar
• 69,220 points
2,780 views
0 votes
1 answer

how to delete a file in python?

to delete a file import os os.remove('filename') this will delete ...READ MORE

Mar 18, 2019 in Python by Mohammad
• 3,230 points
909 views
0 votes
1 answer

I have a code that I want to use alter values between two columns in my dataset

Hi @elvin. I read your script and ...READ MORE

Mar 17, 2019 in Python by Omkar
• 69,220 points
938 views
0 votes
1 answer

How can I lookup hostname using the IP address with a timeout in Python?

Good question. I actually was stuck with ...READ MORE

Feb 6, 2019 in Python by Nymeria
• 3,560 points
2,613 views
0 votes
1 answer

How do I access a user by his/her ID using django.contrib.auth.models.User in the latest release of Django?

Hi, there is only that way and ...READ MORE

Jan 10, 2019 in Python by Nymeria
• 3,560 points
3,728 views
0 votes
0 answers

how to do subsetting in python list?

how do i access values while subsetting ...READ MORE

Mar 15, 2019 in Python by Mohammad
• 3,230 points
970 views
0 votes
1 answer

how to install pandas in python

it is very basic to install pandas if ...READ MORE

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

how do i print only the last two letters in a string using regular expression in python?

$ to match the end of the ...READ MORE

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

How to filter HTML tags and resolve entities using Python?

Him the answer is a pretty simple ...READ MORE

Feb 13, 2019 in Python by Nymeria
• 3,560 points
2,216 views
0 votes
1 answer

how to check for exceptions in a file?

try { if (!file.exists("TextFile1.txt")) throw ...READ MORE

Mar 20, 2019 in Python by Mohammad
• 3,230 points
684 views
0 votes
1 answer

can we sort the key value pairs in a dictionary?

we can use OrderedDict import collections result = colections.Ord ...READ MORE

Mar 22, 2019 in Python by Mohammad
• 3,230 points
588 views
0 votes
1 answer

Get business days between start and end date using pandas

You can use BDay() to get the ...READ MORE

Feb 15, 2019 in Python by SDeb
• 13,300 points
2,087 views
0 votes
1 answer

Replace NaN in rolling mean in python

Try this: In [92]: ts.rolling(window=2, min_periods=1).mean() Out[92]: ...READ MORE

Sep 27, 2018 in Python by Priyaj
• 58,020 points
8,172 views
0 votes
1 answer

Does python support the concept of global variables?

In Python, a variable declared outside of ...READ MORE

Mar 12, 2019 in Python by rajesh kumar
1,070 views
0 votes
1 answer

How to extract values from a string or a sequence?

you could use the statements like name[index value ...READ MORE

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

How do I check if a list is empty?

You can try the following: if not a:   print("List ...READ MORE

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

Program to store the details multiple employees

import random class Bank: ...READ MORE

Feb 13, 2019 in Python by Omkar
• 69,220 points
2,177 views
0 votes
5 answers

What to study in Python to do freelancing using this?

Hello, you are on the right track. ...READ MORE

Feb 27, 2019 in Python by Priyaj
• 58,020 points
1,377 views
0 votes
1 answer

what is an else if statement in python?

if condition:    statement elif condition:     statement #this is how you use ...READ MORE

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

Display details of importer

Yes, you can perform the same by ...READ MORE

Mar 15, 2019 in Python by SDeb
• 13,300 points
807 views
0 votes
3 answers

Is python version 3.7.2 supported by pycharm jetbrains IDE?

Yes it works fine.. READ MORE

Feb 28, 2019 in Python by Pratosh kumar
1,432 views
0 votes
0 answers

try except is not working while using hdfs command

Hi,  I am trying to run following things ...READ MORE

Mar 6, 2019 in Python by anonymous
1,235 views