15,185 Topics

Member Avatar for
Member Avatar for ALosh99

How can I calculate the average weight in python for two columns (x,y) data file, between 8<r< 9. in python I have tried this put it dose not work with my np.average(X,Y, weights=[8,9]) I have calculated the average weight which is 12.14, now I am trying to use this weight …

Member Avatar for vaishali_2
0
315
Member Avatar for ALosh99

I have two array data files. I want to add weight function to these two array which I ploted see attached file. what I am trying to do now is use the weight function below, for two data set and select the points between 8<r <9 in each data then …

Member Avatar for ALosh99
0
142
Member Avatar for Joe_40

Just wondering how you would add user input from within the program into a drop down bar for future use.

Member Avatar for rproffitt
0
172
Member Avatar for davy_yg

Hello all, I am quite impress knowing that Python has been the most popular programming language in July 2018. Check this statistic: https://pypl.github.io/PYPL.html It looks like there is a changing in trends - in 2015 PHP is rank no 2 and now rank 4. While Python rank 3 moves up …

Member Avatar for rproffitt
1
463
Member Avatar for Leonardo_6

Could anyone please review my code https://github.com/LeoUpperThrower4/GeneticAlgorithm

Member Avatar for rproffitt
0
246
Member Avatar for Jatin_4

I am facing issue while appending fieldlist through append_entry in flask-wtf. I am able to add one row of fields from fieldlist but after adding first row, i am not able to add second row. No errors are shown. In first attempt a new row is added of field list …

0
182
Member Avatar for Syafiqur

Suppose I have a text file : > As a manager, he told FIFA TV he communicates his messages in a measured way. ā€œIā€™m not one of the lads,ā€ Southgate explained. How do I change the sentence inside the quote (") into indirect sentence? What method/algorithm do I need to …

Member Avatar for rproffitt
0
593
Member Avatar for deadmarshal

Hi, I've written this code which i send below. now i have a listview, and when i click each item in my listview, i want it's related word to be fetched from db and shown in my textview. now it fetches all the data :(. look at the picture, for …

Member Avatar for rproffitt
0
522
Member Avatar for gerald_9

Hi everyone I have this code that I am using from a book, it seems that it does not run correctly, I am new to tkinter and trying to understand how its lay out is supposed to work, is this code up-to-date with using pycharm? I have tried pycharm and …

0
249
Member Avatar for Otto_1

New to Python. Background from TRS basic thru several versions of basic and ending with Qbasic, some Perl and now trying Python. I get the following error and have no idea what is causing it. There would be 11 catagories and some catagories could have multiple entries for the period. …

Member Avatar for ryantroop
0
1K
Member Avatar for Asima_2

hi so im trying to do a code that will ask the user for 3 values,determine if those values make a triangle,find the angles if it does make a triangle ane draw the triangle if the values make one.im having trouble drawing the trangle.this is the code i have so …

Member Avatar for ddanbe
0
443
Member Avatar for Amaina

I have been cracking my head on this mater in the past couple of days. I am faced with a situaton where i need to write a MySQL equivalent of PHP code to loop through sql select results. The Php code looks like this $query = "SELECT pubid, author FROM …

Member Avatar for flashx4u
0
19K
Member Avatar for ALosh99

I want to shift my plot to the right by fixed value , I have npy file contain 7 columns, I plot the histogram for the column number 7 as below: plt.figure() plt.hist(x[7],bins=800,color='y',histtype='step',linewidth=2,stacked=True) plt.show() I am trying to shift my plot to the right with fix value but I could …

Member Avatar for ALosh99
0
1K
Member Avatar for Gustavo_7

I would like to retrieve a filtered data from a text file and send to excel. I have these lines in a text.txt file: I am Fred username is fred from USA cd I am Robert username is bob from USA cd I am John username is john from China …

Member Avatar for rproffitt
0
519
Member Avatar for Sergi_1

I am looking for an API that will be easy to use, also allows me view reports of sended SMS, that also has documentation and examples to how manage it.

Member Avatar for Tran_10
0
301
Member Avatar for Jack_9

Hello fellow python lovers of daniweb.com. This isn't as much a question as much as the fact that I want to see how different people would go about using python to inject an SQl database. I made a script were you can access the ip and run a command. NOTE:Obviously …

Member Avatar for phoenix079
0
8K
Member Avatar for Abdullahi_2

I have writen my codings, all that is remain for me is to convert to software. Please how do I convert it...

Member Avatar for JimmyD94
0
470
Member Avatar for shibunath

Fellow Python developers, Python has a sorted() or sort() function to implement ascending or descending order programs,but supposing if i want to develop a ascending order program that takes user input and ascends or descends them,how should I go about? For Example: Lets Say i want to convert this C …

Member Avatar for Zak_2
0
6K
Member Avatar for usman_14

Hey guyss, here are a big champs of programming I have seen in this web, I am stucking in this assignment of mine, from where should I start I am totally stucked, is anyone here who can help me for this programme........ Define a function drawCircle. This function should expect …

Member Avatar for Gribouillis
0
1K
Member Avatar for lllllIllIlllI

Hi i have been spending the last few days deciding on an IDE that would let me program in Java, C++ and python and notepad++ looked pretty good. The only issue is i cant work out how to make the program run once i have made it. I looked in …

Member Avatar for Kuldeep_8
1
3K
Member Avatar for Mystrious

The purpose of this question is to calculate the three cubic roots of a complex number. A complex number is of the form a + ib where i is āˆšāˆ’1. Attach the full qustion

Member Avatar for ddanbe
0
229
Member Avatar for Elizabeth_13

I am having trouble getting my button to work. What I am trying to do is when the button is pressed, it should call the function clickGame() The window is opening after I press the button but I get an error message: self.tk = master.tk AttributeError: 'Point' object has no …

Member Avatar for Gribouillis
0
770
Member Avatar for Mamatha_1

Hi All, I am a newbie programmer in python and I am trying to read multiple csv files from a folder, replace the delimeter for all the csv files and then output these files into a new folder with replaced delimiter. So far I am stuck at the beginning. Please …

Member Avatar for rproffitt
0
612
Member Avatar for Amani_2

I am having trouble coding an animation for a pendulum simulation. I can never seem to get any of the code right. I tried using pygame, but it didn't work even after I installed it into my computer! I just need to know where to start! Help please!!!

Member Avatar for rproffitt
0
224
Member Avatar for suhayb

i want to make simple cafe management system in Tkinter the buttons are automatically generating from a database so how i can get the names of the buttons and their price from a database and also want so insert this into a receipt(textbox) thanks def showbreakfast(): data1 = readbreakfast() for …

0
318
Member Avatar for davy_yg

How to install Keras, Phython framework on Windows? https://ankivil.com/installing-keras-theano-and-dependencies-on-windows-10/ C:\xampp\htdocs\python>cd "%USERPROFILE%\Anaconda3\Lib\site-packages" The system cannot find the path specified. What's missing? Is installing CUDA and Theano a prerequisite before installing Keras?

Member Avatar for rproffitt
0
175
Member Avatar for davy_yg

Hello, I am new to python. I am trying to run this python program using xampp. first.py print('Interest Calculator:') amount = float(input('Principal amount ?')) roi = float(input('Rate of Interest ?')) years = int(input('Duration (no. of years) ?')) total = (amount * pow(1 + (roi/100), years)) interest = total - amount …

Member Avatar for Reverend Jim
0
175
Member Avatar for Sajid_10

https://github.com/shivamshekhar/PyGalaxian Please update PyGalaxian file as i want the number of hits by the aeroplane into another file either text file or excel file or jupyter notebook and want to plot using plotly and plotlib library and show the analytics at what rate the hits are occuring after firing and …

Member Avatar for JamesCherrill
0
534
Member Avatar for PRASANNA_3

Hi I am a python bigginer, I have a scenario where I need to search and select a particular value from linux command "df -h". dumpe2fs 1.42.13.x5 (23-Mar-2017) Inode count: 786432000 [root@copper02 ~]# In this above output I need to store the inode count number in to a variable to …

Member Avatar for Reverend Jim
0
329
Member Avatar for davy_yg

Hello, Anyone knows anything about phython? Someone mention to me if you need anything about AI Phython would be the perfect language to program it. Is that true? Thanks in advance.

Member Avatar for alan.davies
0
342

The End.