Trending questions in Python

+2 votes
11 answers

How to print array/ list without brackets in python?

name=["a","b","c"] print (', '.join(name)) It will simply take all ...READ MORE

Apr 18, 2018 in Python by aayushi
• 750 points
16,372 views
+2 votes
5 answers

What exactly is the function of random.seed() in python?

The seed method is used to initialize the ...READ MORE

Oct 29, 2018 in Python by Rahul
10,938 views
0 votes
11 answers
0 votes
1 answer

How to install tensorflow in Python?

If you are using Anaconda then you ...READ MORE

2 hours ago in Python by Neel
• 1,610 points
4 views
0 votes
1 answer

What are decorators in Python?

Python has an interesting feature called decorators to add ...READ MORE

2 hours ago in Python by Neel
• 1,610 points
4 views
0 votes
1 answer

How to convert multiple columns to string in pandas dataframe?

Hi, To convert multiple columns to string, include a list of ...READ MORE

21 hours ago in Python by Taj
• 920 points
9 views
0 votes
1 answer

How to iterate over row in a Dataframe in Pandas?

Hi, You can use df.iterrows(), it yields both ...READ MORE

21 hours ago in Python by Taj
• 920 points
7 views
0 votes
0 answers
0 votes
1 answer

Is it possible to access .NET code written in C# from Python?

If you want to mainly base your ...READ MORE

1 day ago in Python by Arvind
• 1,530 points
10 views
0 votes
0 answers

how does sorted function works in python?

How are the arguments passed in the ...READ MORE

42 minutes ago in Python by Waseem
• 3,480 points
2 views
0 votes
0 answers

how do you install python modules in mac os?

Is it different from installing modules in ...READ MORE

46 minutes ago in Python by Waseem
• 3,480 points
2 views
0 votes
1 answer

How to perform string operations on every element of a list of strings?

This can be done using list comprehension ...READ MORE

1 day ago in Python by Arvind
• 1,530 points
6 views
0 votes
0 answers

How to perform string operations on every element of list ?

I have a list of words in ...READ MORE

1 day ago in Python by Neel
• 1,610 points
5 views
0 votes
1 answer

Connect to two databases

If you don't specify the database in ...READ MORE

2 days ago in Python by SDeb
• 12,280 points
10 views
0 votes
1 answer

Sort (hex) colors to match rainbow

Here's a function that, given a color ...READ MORE

2 days ago in Python by SDeb
• 12,280 points
8 views
0 votes
1 answer

how to check whether a string starts with a particular word?

For this, you can use the built-in ...READ MORE

2 days ago in Python by Neel
• 1,610 points
10 views
0 votes
0 answers

How to sort two different lists with same common value?

list1 = [ ["name1", 100], ["name2", 33], ...READ MORE

1 day ago in Python by Waseem
• 3,480 points
3 views
0 votes
0 answers

Why is selenium css and xpath selector not working?

selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or ...READ MORE

1 day ago in Python by Waseem
• 3,480 points
3 views
0 votes
1 answer

Is it possible to find the source code of built-in functions of Python?

Since Python is open source you can ...READ MORE

2 days ago in Python by Neel
• 1,610 points
9 views
0 votes
1 answer

What is abs in Python?

The abs() method returns the absolute value ...READ MORE

3 days ago in Python by Arvind
• 1,530 points
9 views
0 votes
1 answer

How to find the type of variable in Python?

i=277 type(i) # int i = 2.56j type(i) # complex i ...READ MORE

3 days ago in Python by Arvind
• 1,530 points
9 views
0 votes
1 answer

Generators with plots

Yes, you can. I tried doing it ...READ MORE

3 days ago in Python by Wajiha
• 1,120 points
11 views
0 votes
1 answer

What data format for large files in R?

Zipping won't help you, as you'll have ...READ MORE

3 days ago in Python by SDeb
• 12,280 points
12 views
0 votes
1 answer

SyntaxError: Missing parentheses in call to "print".

The statement print "hello python" does not work in ...READ MORE

3 days ago in Python by Umar
10 views
0 votes
0 answers

How to install tkinter on windows?

Does it work like the other libraries ...READ MORE

2 days ago in Python by Waseem
• 3,480 points
7 views
0 votes
1 answer

Python Slicing operation

The difference in the output which you ...READ MORE

3 days ago in Python by Kiran
9 views
0 votes
1 answer

How to eliminate out outliers in a dataframe?

There are various ways we can replace ...READ MORE

3 days ago in Python by Dinesh
8 views
0 votes
0 answers

How to get the ASCII values of a character in python?

Is there a function for this task ...READ MORE

2 days ago in Python by Waseem
• 3,480 points
4 views
0 votes
1 answer

Pyglet Image Rendering

I will assume you have something along ...READ MORE

3 days ago in Python by SDeb
• 12,280 points
7 views
0 votes
1 answer

KDE in seaborn distplot()

Kernel Density Estimation (KDE) is a way ...READ MORE

3 days ago in Python by Kunal
4 views
0 votes
1 answer

How to access specific columns from a csv file?

Instead of using csv module in Python, ...READ MORE

4 days ago in Python by Neel
• 1,610 points
11 views
0 votes
1 answer

Is it possible to print a string and a variable in a single print statement in Python?

This can be done using simple string ...READ MORE

4 days ago in Python by Neel
• 1,610 points
11 views
0 votes
0 answers

How does pillow work in opening and closing images in python?

Is there a separate library that we ...READ MORE

3 days ago in Python by Waseem
• 3,480 points
9 views
0 votes
0 answers

What does super() function do in python?

How do we use it in single ...READ MORE

3 days ago in Python by Waseem
• 3,480 points
8 views
0 votes
1 answer

Undefined Behaviour in Python

Python evaluates expressions from left to right. ...READ MORE

4 days ago in Python by SDeb
• 12,280 points
11 views
0 votes
1 answer

char list from 0 to f

The simplest way would be a list ...READ MORE

4 days ago in Python by SDeb
• 12,280 points
9 views
0 votes
1 answer

Generator Expressions vs. List Comprehension

Generator expression resemble list comprehensions. List comprehensions ...READ MORE

4 days ago in Python by Wajiha
• 1,120 points
10 views
0 votes
1 answer

UnicodeDecodeError: "utf-8" codec can"t decode byte 0xeb in position 8: unexpected end of data

To read this dataset use encoding as ...READ MORE

4 days ago in Python by Rishi
10 views
0 votes
1 answer

Difference between function and generator?

Normal Functions vs Generator Functions: Generators in Python ...READ MORE

4 days ago in Python by Wajiha
• 1,120 points
9 views
0 votes
1 answer

DataFrame slicing in Python

You can use criteria based subset for ...READ MORE

4 days ago in Python by Sakra
9 views
0 votes
1 answer

Python: Splitting numPY 2 D Array

For splitting the 2d array,you can use ...READ MORE

4 days ago in Python by Siri
11 views
0 votes
1 answer

Construct an array with Nan elements

Create a numpy array with nan value ...READ MORE

4 days ago in Python by Yogi
8 views
0 votes
1 answer

How to create LIST from CSV file in Python?

You can use the pandas library for this which ...READ MORE

4 days ago in Python by Karan
8 views
0 votes
2 answers

Write a for loop that prints all elements of a list and their position in the list. a = [4,7,3,2,5,9]

a = [4,7,3,2,5,9] b = enumerate(a) for i in ...READ MORE

3 days ago in Python by Kei Tee
33 views
0 votes
0 answers

what is webserver in python?

Is there a predefined library in python ...READ MORE

4 days ago in Python by Waseem
• 3,480 points
8 views
0 votes
0 answers

What are data structures in python?

What is the difference between data structures ...READ MORE

4 days ago in Python by Waseem
• 3,480 points
7 views
0 votes
2 answers

How to check whether a string contains alphabets or number in Python?

By using isAlpha () to check whether ...READ MORE

5 days ago in Python by Sheik janibasha
30 views
0 votes
1 answer

Python: Megre multiple dataframes into single data frame

You can merge the data frame using ...READ MORE

5 days ago in Python by Sharan
10 views
0 votes
1 answer

How to compare expected and predicted values?

The predict() function returns a plain numpy ...READ MORE

5 days ago in Python by Tina
8 views
0 votes
0 answers

i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

for i in cnames:     print(i)     df_csv[i] = (df_csv[i] - ...READ MORE

5 days ago in Python by anonymous
9 views