Trending questions in Python

0 votes
0 answers

how to create dataframes with nifi

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

I would like to connect to multiple databases in oracle

Hey Radhika, To communicate any database with Python ...READ MORE

Feb 17, 2020 in Python by Gitika
• 65,770 points
2,245 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
13,075 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
13,536 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
18,354 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,960 points
10,695 views
0 votes
0 answers

nifi dataframe.py

Mar 13, 2020 in Python by pavankumar
• 140 points
829 views
0 votes
0 answers

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

Mar 13, 2020 in Python by Anubhuti
• 120 points
703 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
969 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,891 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 618 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,814 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,995 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,861 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,504 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,050 points
9,297 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
9,245 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
11,690 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,403 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
15,284 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
483 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
828 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
7,211 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
13,362 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,467 views
0 votes
0 answers

How to start Pytest framework studying

Feb 29, 2020 in Python by Maruti
• 120 points
702 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,601 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,432 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,787 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
17,604 views
0 votes
1 answer

Python strftime- date without leading 0?

If you add a hyphen between the ...READ MORE

Dec 31, 2018 in Python by SDeb
• 13,300 points
18,858 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
915 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,763 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,784 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
561 views
0 votes
1 answer

Python function to find a list of all keywords

You can use the keyword module for ...READ MORE

Jun 17, 2019 in Python by Ayman
11,219 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
588 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
7,289 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,781 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,776 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,551 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,020 points
24,224 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,591 views
0 votes
1 answer

How do I draw a semi-circle only using turtle - Python

Try this: import turtle turtle = turtle.Pen() turtle.left(90) for x in ...READ MORE

Jul 6, 2019 in Python by Bheem
10,213 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,480 points
915 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
941 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,992 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 832 views