Latest questions in Python

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

3 days ago in Python by saiarun
• 120 points
19 views
0 votes
0 answers

how to write unittest cases for stock prediction data

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

5 days ago in Python by Vasu
• 140 points
77 views
0 votes
0 answers

i am installing wordcloud using pip but i am unable to do that ....i am getting the following error

Running setup.py install for wordcloud ... error     ERROR: ...READ MORE

6 days ago in Python by Prajwala
• 120 points
99 views
0 votes
0 answers

attribute error

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

Feb 18 in Python by Jeya
• 120 points
75 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 in Python by Shruthi
• 120 points

recategorized Feb 18 by Gitika 76 views
0 votes
0 answers

main function is not working in python

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

Feb 18 in Python by Vasu
• 140 points
91 views
0 votes
1 answer

TypeError: 'Element' object is not subscriptable

Hey Bharti, You can get some idea from ...READ MORE

Feb 18 in Python by Gitika
• 26,030 points
37 views
0 votes
0 answers

How to iterate through an S3 bucket to find the last modified file (and then save that to a local folder)

Hi there guys, I've been tasked with ...READ MORE

Feb 17 in Python by Markus
• 120 points
35 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 in Python by Gitika
• 26,030 points
44 views
0 votes
1 answer

ValueError: could not broadcast input array from shape (4,1) into shape (4)

Hey @Giorgio, You can try this hope this ...READ MORE

Feb 18 in Python by Gitika
• 26,030 points
92 views
0 votes
1 answer

How to convert sqlite format to CSV format?

Hi@akhtar, If you want to read SQLite format ...READ MORE

Feb 11 in Python by MD
• 3,070 points
49 views
+1 vote
0 answers

Pressing "ENTER" in Instagram search box Python Selenium

I am trying to type in a ...READ MORE

Feb 10 in Python by jexxx
• 130 points
56 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 in Python by neppoliean
• 120 points
87 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 in Python by Roshni
• 400 points
79 views
0 votes
0 answers

Can I get chatbot code?

Feb 4 in Python by Mahesh
• 120 points

edited Feb 5 by Gitika 54 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):     #g = "input/subset"+str(k)+"/"+j     #numpyImage, numpyOrigin, ...READ MORE

Jan 28 in Python by anonymous
• 150 points
145 views
0 votes
0 answers

I am trying to print each entry of the dataframe separately. The dataframe is created by the following code

import pandas as pd XYZ_web = {'Day':[1,2,3,4,5,6], 'Visitors':[1000,700,6000,1000,400,350], ...READ MORE

Jan 27 in Python by solo
• 120 points
179 views
+2 votes
0 answers

unsupported operand type error

tech_list=closingdata.pct_change() tech_list READ MORE

Jan 26 in Python by Anupriya
• 140 points
117 views
0 votes
1 answer

Use two different programs in the third

You can treat each python file as ...READ MORE

Jan 24 in Python by Priya
102 views
+1 vote
1 answer

I have explained my scenario.Please suggest answer for this?

Hi @Vishal, You can simply use an if-else ...READ MORE

Jan 22 in Python by Kalgi
• 51,830 points
146 views
+2 votes
0 answers

Partial screenshot in Linux with Python Selenium

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

Jan 21 in Python by Noor
• 200 points
147 views
+1 vote
0 answers

taking partial screenshot with python selenium in linux [closed]

is it possible to take screenshot of ...READ MORE

Jan 21 in Python by Noor
• 200 points

closed Jan 21 by Kalgi 69 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 in Python by Yamini
90 views
+1 vote
0 answers

how can read text from website ??

from selenium import webdriver import time query = ('maps') if ...READ MORE

Jan 6 in Python by anonymous
• 130 points
155 views
+2 votes
1 answer

Create column for str,contain in pandas

Hi Juzar So if I am not wrong ...READ MORE

Jan 6 in Python by Kalgi
• 51,830 points
151 views
+1 vote
1 answer

(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

You are getting this error because you ...READ MORE

Dec 31, 2019 in Python by Kalgi
• 51,830 points
1,112 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 by Kalgi 351 views
0 votes
0 answers

attribute error in python

i kept getting attribute error in my ...READ MORE

Dec 23, 2019 in Python by anonymous
• 120 points
137 views
+1 vote
1 answer

instead of using two for loops in python

This example might help: for x, y in ((a,b) ...READ MORE

Dec 24, 2019 in Python by Sumeir
160 views
+1 vote
1 answer

sum of 1/2+2/3+3/4+...+n/n+1

num = int(input("Enter a number: ")) newnum = ...READ MORE

Dec 27, 2019 in Python by Nisha
• 160 points
420 views
+1 vote
0 answers

TypeError: only integer scalar arrays can be converted to a scalar index

import cv2 import numpy as np import matplotlib.pyplot as ...READ MORE

Dec 18, 2019 in Python by sandeep
• 130 points
727 views
+1 vote
0 answers

how to match the following string without a regular expression in python

abc_pqr_0_114_004.xxx ab_pq_04_114.xxx READ MORE

Dec 17, 2019 in Python by Rajesh Babu
• 130 points
131 views
+1 vote
1 answer

Python: How to convert text to csv rows separated by a record separator?

Hi @Sumanth, try something like this: import csv with ...READ MORE

Dec 17, 2019 in Python by Pri
215 views
+2 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 의철
• 140 points
235 views
+1 vote
1 answer

How do I use the data of an array after splitting it?

Hey, You can use  np.greater(b, f) np.greater_equal(b, f) np.less(b, f) np.less_equal(b, ...READ MORE

Dec 9, 2019 in Python by Payal
174 views
+1 vote
0 answers

I have to write 2 triangles in one raw (python)

I have two triangles that has to ...READ MORE

Dec 3, 2019 in Python by מיקה
• 130 points
191 views
+1 vote
2 answers

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

Hello @Ramasubrananiam! You can use the binary ...READ MORE

Dec 3, 2019 in Python by Priyanka
472 views
0 votes
0 answers

I am trying to click the button but it is not working and it is drop list ..

<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE

Dec 1, 2019 in Python by anonymous
• 120 points
111 views
+1 vote
1 answer

Replace every character of string by character whose ASCII value is K times more than it

Hi @Vaibhav! In such a case what ...READ MORE

Dec 5, 2019 in Python by Kalgi
• 51,830 points
427 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
336 views
+2 votes
0 answers

I don't want to seem like a begger, but I've been working on this code for the past 3 days and made 0 progress.

Basically, my code runs a turtle and ...READ MORE

Nov 25, 2019 in Python by Kyler
• 140 points
107 views
+1 vote
0 answers

ssh db connection using python2.7

I am supposed to use python 2.7 ...READ MORE

Nov 22, 2019 in Python by sweta
• 130 points
83 views
+7 votes
4 answers

What's the coolest thing you've ever done using Python?

Python is an extremely interesting language. you ...READ MORE

Nov 27, 2019 in Python by Tini
352 views
+1 vote
0 answers

Sum the values of column matching and not matching from a .txt file and write output to a two different files using Python

Name                                                    value DR_CNDAOFSZAPZP_GPFS_VOL.0 139264 DR_CNDAOFSZAPZP_GPFS_VOL.1 15657 DR_CNDAOFSZAPZP_GPFS_VOL.0 139264 DR_CNDAOFSZAPZP_GPFS_VOL.1 156579 DR_CNDAOFSZAPZP_GPFS_VOL.2 156579 DR_CNDAOFSZAPZP_GPFS_VOL.3 ...READ MORE

Nov 20, 2019 in Python by Sagar
• 130 points
148 views
0 votes
0 answers

Can not fetch data from Google fire store

i have https domain with django platfrom ...READ MORE

Nov 18, 2019 in Python by anonymous
• 120 points
105 views
0 votes
1 answer

How do I create a dataframe using a dictionary in pandas?

Hi @Hannah, You need to define your dictionary ...READ MORE

Nov 18, 2019 in Python by Eric
65 views
0 votes
2 answers

Change the default indexing of an array in pandas

df = pd.DataFrame({'month': [1, 4, 7, 10],                    'year': ...READ MORE

Nov 27, 2019 in Python by nagendra reddy
53 views
0 votes
1 answer

Check python object's data type

Hi @hannah, that's pretty simple. To check ...READ MORE

Nov 18, 2019 in Python by Eric
49 views