Trending questions in Python

0 votes
1 answer

Python Pandas Dataframe: set_value is deprecated and will be removed in a future release

The set_value function is deprecated and you will ...READ MORE

Apr 8, 2019 in Python by Jai
15,440 views
0 votes
0 answers

nifi dataframe.py

Mar 13, 2020 in Python by pavankumar
• 140 points
744 views
0 votes
1 answer

reverse a list without built-in functions

You can do it in 2 ways: Using ...READ MORE

Jul 31, 2019 in Python by Wajiha
• 1,950 points
10,378 views
0 votes
0 answers

print(lst[-2:-4]) is not possible why?

Mar 13, 2020 in Python by Anubhuti
• 120 points
554 views
0 votes
0 answers

Uploading JSON file to a new column in DynamoDB table.

Actually I have two dynamo db tables ...READ MORE

Mar 6, 2020 in Python by Naveena
841 views
0 votes
1 answer

How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?

Open the command line and enter jupyter notebook ...READ MORE

Jun 10, 2019 in Python by SDeb
• 13,300 points
12,428 views
0 votes
0 answers

How i can open a storage based pdf file in chrome full screen mood using python?

i have a pdf file stored in ...READ MORE

Mar 12, 2020 in Python by junaid
• 120 points

retagged Mar 12, 2020 by junaid 522 views
0 votes
1 answer

Error saying "TypeError: descriptor object needs an argument"

The error is pretty straight forward, toy ...READ MORE

May 28, 2019 in Python by Alisha
12,894 views
0 votes
1 answer

How to call Python script from bash with an agrument?

Hi, You need to call the same command ...READ MORE

Jun 25, 2019 in Python by Shabnam
• 930 points
11,548 views
+1 vote
0 answers

ValueError: could not broadcast input array from shape (2) into shape (5) [closed]

I was implementing gillespie algorithm and when ...READ MORE

Dec 23, 2019 in Python by anonymous
• 130 points

reshown Jan 13, 2020 by Kalgi 3,682 views
0 votes
1 answer

How to replace entire column in pandas dataframe?

Use the dataframe with respective column names ...READ MORE

May 8, 2019 in Python by John
13,551 views
0 votes
0 answers

main function is not working in python

import quandl as Quandl, math import numpy as ...READ MORE

Feb 18, 2020 in Python by Vasu
• 140 points
1,183 views
0 votes
0 answers

problem in sklearn

from sklearn.model_selection import train_test_split is not working ...READ MORE

Mar 9, 2020 in Python by Manjunath
• 120 points
333 views
0 votes
0 answers

where can i get the invoice of the certification that i have taken

Please provide me the invoice of the ...READ MORE

Feb 18, 2020 in Python by Shruthi
• 120 points

recategorized Feb 18, 2020 by Gitika 1,151 views
0 votes
1 answer

Is it possible to use variables in SQL statement in Python?

cursor.execute("INSERT INTO table VALUES (%s, %s, %s)", ...READ MORE

Aug 21, 2019 in Python by Neel
• 3,020 points
8,864 views
+1 vote
1 answer

How to install tensorflow using anaconda and python 3.7.1 on windows?

Since I am using python 3.5 so ...READ MORE

Aug 19, 2019 in Python by Arvind
• 3,040 points
8,891 views
0 votes
2 answers

Obtaining a value when given a key in python dicionaries

Yes you can check below code dictionary = ...READ MORE

Nov 25, 2021 in Python by Suhas
601 views
0 votes
2 answers

Data of XYZ company is stored in sorted list. Write a program for searching specific data from that list.

https://www.youtube.com/watch?v=mqaf7vj1AdA This link has the program. It uses ...READ MORE

Dec 3, 2019 in Python by Raveendiran
• 980 points
4,283 views
0 votes
0 answers

How to start Pytest framework studying

Feb 29, 2020 in Python by Maruti
• 120 points
564 views
0 votes
1 answer

Convert HTML to an image in Python

webkit2png. The original version is OSX-only, but luckily ...READ MORE

Feb 5, 2019 in Python by SDeb
• 13,300 points
17,335 views
0 votes
2 answers

Python error "pygame.error: Couldn't open pygame.png"

add import os at top of your ...READ MORE

Sep 25, 2020 in Python by anonymous
1,423 views
0 votes
2 answers

What is random.sample() method in Python?

The use of random.sample() Randomly select multiple items from ...READ MORE

Mar 13, 2020 in Python by Vishal
• 180 points
4,573 views
0 votes
1 answer

Python datetime: How to change month number to month name?

You can use the datetime module to ...READ MORE

May 9, 2019 in Python by Suman
13,172 views
0 votes
0 answers

how to write unittest cases for stock prediction data

import quandl as Quandl, math import numpy as ...READ MORE

Feb 20, 2020 in Python by Vasu
• 140 points
671 views
0 votes
1 answer

Python error "ImportError: No module named _tkinter, please install the python-tk package"

Use the following command to install tkinter ...READ MORE

Aug 9, 2019 in Python by Chandan
9,040 views
0 votes
1 answer

Error while installing cv2 module in pycharm

Go to tools -> python console -> ...READ MORE

Jun 24, 2019 in Python by Quin
10,985 views
+1 vote
0 answers

Error :tile cannot extend outside the image .How to save patches without this error.

def nodule_detect(nodules,j,numpyImage, numpyOrigin, numpySpacing): ...READ MORE

Jan 28, 2020 in Python by anonymous
• 150 points
1,499 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,523 views
0 votes
1 answer

python error " r = sr.Recognizer() AttributeError: 'module' object has no attribute 'Recognizer'"

Hey @Hannh, I had a similar issue. ...READ MORE

Oct 3, 2019 in Python by Farheen
6,521 views
0 votes
0 answers

Need to create rds instances under already existing subnets created in 3 az's, please help

I created subnets in three different az's. ...READ MORE

Feb 23, 2020 in Python by saiarun
• 150 points
370 views
0 votes
1 answer

Python Pandas: selecting element in array column

pa.loc[row] selects the row with label row. pa.loc[row, ...READ MORE

May 13, 2019 in Python by SDeb
• 13,300 points
12,630 views
+3 votes
0 answers

PyQt5, when I click button, it close window itself.

PyQt5, when I click button, it close ...READ MORE

Dec 9, 2019 in Python by 의철
• 150 points
3,429 views
0 votes
0 answers

attribute error

AttributeError: 'edureka' object has no attribute 'name' READ MORE

Feb 19, 2020 in Python by Jeya
• 120 points
395 views
+1 vote
1 answer

How 2 compare words read by sys.stdin.sys() in Python 3?

Hi Alex, You could use something like this: import ...READ MORE

Jan 20, 2020 in Python by Yamini
1,573 views
0 votes
1 answer

How do I obtain the index list in a NumPy Array of all the NaN values present using Python?

Hi, it is pretty simple, to be ...READ MORE

Jan 30, 2019 in Python by Nymeria
• 3,560 points
16,803 views
0 votes
1 answer

Python: XML file to pandas dataframe

Here's an example code: import pandas as pd ...READ MORE

Aug 1, 2019 in Python by Sharon
8,832 views
0 votes
1 answer

How to convert each list item into string in a column of data frame. ?

Hey, To split a string you can use ...READ MORE

Feb 5, 2020 in Python by Roshni
• 10,520 points
703 views
0 votes
1 answer

Purpose of fit method in sklearn module in python?

it basically trains your model using the ...READ MORE

May 14, 2020 in Python by Mahesh
• 140 points
3,170 views
0 votes
0 answers

How can we pass a variable value in python GOTO statement?

Alias is a runtime argument the value ...READ MORE

Feb 5, 2020 in Python by neppoliean
• 120 points
666 views
0 votes
2 answers

What is the python logic to check if a number is armstrong number or not?

a = int (input('enter number')) num = a sum ...READ MORE

Jul 16, 2020 in Python by amrut
• 240 points
1,327 views
0 votes
1 answer

How can I check for NaN in Python?

math.isnan() Checks if the float x is a ...READ MORE

Aug 16, 2018 in Python by Priyaj
• 58,090 points
23,815 views
+2 votes
0 answers

Partial screenshot in Linux with Python Selenium

Taking a partial screenshot of an element by ...READ MORE

Jan 21, 2020 in Python by Noor
• 200 points
1,183 views
0 votes
0 answers

Can I get chatbot code?

Feb 5, 2020 in Python by Mahesh
• 120 points

edited Feb 5, 2020 by Gitika 613 views
0 votes
0 answers

Pyplot error "only size-1 arrays can be converted to Python scalars"

I am getting the following error while ...READ MORE

Nov 28, 2019 in Python by Sumit
• 130 points
3,564 views
0 votes
0 answers

Python error "ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv."

I tried upgrading pip using the following ...READ MORE

Oct 3, 2019 in Python by Hannah
• 18,570 points
5,778 views
+1 vote
1 answer

Python pip: “error: Microsoft Visual C++ 14.0 is required”

Seems like the setup tools for python ...READ MORE

Aug 20, 2019 in Python by Kunal
7,593 views
0 votes
1 answer

How to easily install python ldap in linux?

python-ldap provides an object-oriented API to access LDAP directory ...READ MORE

Sep 16, 2019 in Python by Neel
• 3,020 points
6,514 views
0 votes
1 answer

What is the logic to check if a number is prime or not in python?

n = int (input ('ENTER NUMBER TO ...READ MORE

Jul 16, 2020 in Python by amrut
• 240 points
842 views