Latest questions in Python

+1 vote
2 answers

how can i do a binary search in python?

def Binary_search (array , element):       ...READ MORE

Jul 10, 2020 in Python by anonymous
• 240 points
777 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
450 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
297 views
0 votes
1 answer

How to create Pandas series from dictionary?

Here's a sample script: import pandas as pd import ...READ MORE

Apr 1, 2019 in Python by Prateek
2,150 views
0 votes
1 answer

Pandas series with custom index

You can do it by specifying index. ...READ MORE

Apr 1, 2019 in Python by Isha
4,636 views
0 votes
1 answer

How to create Pandas series from numpy array?

Hi. Refer to the below command: import pandas ...READ MORE

Apr 1, 2019 in Python by Pavan
3,279 views
0 votes
1 answer

How to append dataframe without index?

You have to use the ignore_index option. ...READ MORE

Apr 1, 2019 in Python by Robert
14,592 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,352 views
0 votes
1 answer

what is a constructor in python?

Constructors are for instantiating an object.The task ...READ MORE

Apr 1, 2019 in Python by Tushar
• 200 points
7,915 views
0 votes
3 answers

TypeError: Index(...) must be called with a collection of some kind, 'Email' was passed

It is not working because your code ...READ MORE

May 13, 2020 in Python by anonymous

edited May 13, 2020 by Gitika 50,964 views
0 votes
3 answers

Python Pandas: ValueError: DataFrame constructor not properly called!

The syntax is not right. The right ...READ MORE

Mar 28, 2019 in Python by Ritu
84,850 views
0 votes
1 answer

How to get domain name of email ID?

You can use the split method to split the ...READ MORE

Mar 28, 2019 in Python by Firoz
891 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
478 views
0 votes
0 answers

Bash Commands in Jupyter Notebook

Is it possible to use bash commands ...READ MORE

Mar 28, 2019 in Python by Mishti
• 480 points
1,149 views
0 votes
3 answers

Python pandas: TypeError: tuple indices must be integers or slices, not str

In fact, I get a perfectly good ...READ MORE

Jun 13, 2019 in Python by Alok
48,641 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
442 views
0 votes
2 answers

Python Pandas error: AttributeError: 'DataFrame' object has no attribute 'rows'

Try this: data=pd.read_csv('/your file name', delim_whitespace=Tru ...READ MORE

Dec 10, 2020 in Python by anonymous
• 82,880 points
130,627 views
+1 vote
3 answers

How to print one pandas column without index?

There is a slight mistake in what ...READ MORE

Mar 28, 2019 in Python by Shri
62,796 views
0 votes
1 answer

How to print pandas Dataframe without index?

You can print the dataframe without index ...READ MORE

Mar 28, 2019 in Python by Shri
6,771 views
0 votes
1 answer

Error reading csv file in python

You are missing the extension. Try this: import ...READ MORE

Mar 28, 2019 in Python by Shri
2,672 views
0 votes
1 answer

how do i change string to a list?

suppose you have a string with a ...READ MORE

May 21, 2019 in Python by Mohammad
• 3,230 points
2,766 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
636 views
0 votes
1 answer

what is attribute error in python?

import pandas df = pd.read_csv('filename') it will give attribute ...READ MORE

Mar 27, 2019 in Python by Mohammad
• 3,230 points
1,101 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
468 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
547 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,591 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
504 views
0 votes
1 answer

Exclusive values from two Sets in Python

There is a direct function available to ...READ MORE

Mar 27, 2019 in Python by Mugdha
• 600 points
1,015 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,462 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
550 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,659 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,692 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
501 views
0 votes
1 answer

how to compare two strings in python?

compare two string in python >>> s1="abc ...READ MORE

Mar 25, 2019 in Python by rajesh
• 1,270 points
927 views
0 votes
1 answer

Batch Paypal Payments

Yes. You can have a look at ...READ MORE

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

Excel attachments inside another Excel file handling?

Thank you in advance. I would like open ...READ MORE

Mar 23, 2019 in Python by M
• 160 points
307 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
412 views
0 votes
2 answers

how to use sum() in python?

sum()=sum all item in a tuple  syntax: sum(iterble,start) iterable required. The ...READ MORE

Mar 26, 2019 in Python by rajesh
• 1,270 points
770 views
0 votes
1 answer

pip install web2py

You don't need to install web2py, just ...READ MORE

Mar 20, 2019 in Python by SDeb
• 13,300 points
1,111 views
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
808 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
449 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
603 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
817 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,171 views
0 votes
1 answer

pyplot tab character

I see that pylab.show actually shows some ...READ MORE

Mar 19, 2019 in Python by SDeb
• 13,300 points
2,606 views
0 votes
1 answer

how do i clear the screen in python?

import os os.system('cls') or os.system('clear') READ MORE

Mar 19, 2019 in Python by Mohammad
• 3,230 points
949 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
645 views
0 votes
1 answer