Trending questions in Python

0 votes
1 answer

Django AllAuth gives SSLError

It can be fixed by replacing: client = ...READ MORE

Mar 20, 2019 in Python by SDeb
• 13,300 points
1,115 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
626 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
439 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
779 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,508 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,420 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,261 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,832 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
459 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
726 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
487 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
695 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,083 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
643 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,428 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,153 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
760 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
745 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
594 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,547 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
930 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,452 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
883 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
394 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
948 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,204 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,721 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
607 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
896 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,738 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
889 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,570 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
958 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,304 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
935 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
572 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
658 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,173 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,053 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,222 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,159 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
878 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,108 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,007 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
832 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,310 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,391 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,196 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
758 views
0 votes
1 answer

What is the purpose of inner class in Python?

Advantages of inner class: Logical grouping of classes: ...READ MORE

Feb 7, 2019 in Python by SDeb
• 13,300 points
2,311 views