User Profile
Collapse
-
I ended up figuring it out, thanks. I have it displayed from the python app. -
Creating a background in python and outputting it to an html page
I currently have some text that I have being output to a html page, but the background of the page is just white. I would like to make the background a different color on the html page. I assume that I have to do this in my python code and then output that to the html file since every time I run the python file it overwrites the html file. I don't really have any idea how to do this.
Thanks! -
-
Ok. I am new with this and I am not sure what html tags to add.Leave a comment:
-
I would like to export the output to a html file. My python code is saved as verification.py and I would like to output that code to verification.ht ml. And I am not sure how I would do that.Leave a comment:
-
Outputting my python code to a webpage
I wrote a python script and when I run it, it outputs what I want, so I know that it is working. Now I want to be able to put the output of the code on my website and I have no idea how to do this, or even where to begin for that matter. Thanks! -
I wrote my python script in windows, however I need to convert it so that it will run on a linux computer. Do you know how I would convert from windows to linux?Leave a comment:
-
Initially, no I did not, I typed ./Verification.py
However, I just tried that from my http directory which is where the file is located and it said
python: can't open file 'path/Verification_Pr oject.py': [Errno 2] No such file or directoryLeave a comment:
-
Running a Python Script via PuTTY
I wrote a python script and I have copied my file (verification.p y) into my http directory. However, when I try to run the script I get many errors...
Code:.. : No such file or directoryline 1: #!/usr/bin/python : command not foundect.py: line 3: ./Verification_Project.py: line 4: from: command not found : command not foundect.py: line 5: ./Verification_Project.py: line 6: from: command not found
-
-
My OS is Windows Vista Home Premium and I use Notepad to write my code in and run windows command prompt. I have python version 2.5.4.Leave a comment:
-
Appending N/A to blank strings
I have a list of numbers imported from excel, an example line looks like this...
70609,86,91,,66 ,66,
I would like a N/A to be inserted in between the two commas and after the last one.
This is the code I have so far, but I haven't gotten it to work.
Code:f = open("C:\users\cory\desktop\code\Verification.csv") dd = {} keys = f.readline().strip().split(',')
-
I did! This is only my third day working with python, and I have never written code before so I will more than likely have some more questions with due time.Leave a comment:
-
The comments helped a lot, I figured it out! Thanks for all your help.Leave a comment:
-
delta.days is just the number of days in between two dates...
Code:today = datetime.date.today() date_format = "%m/%d/%Y" d0 = date(2009, 6, 21) d1 = today delta = d1-d0 print delta.days
Code:f = open("C:\users\cory\desktop\Verification.csv") dd = ['My_Highs'] keys = f.readline().strip().split(',')
Leave a comment:
-
Help with calcuations using imported numbers.
I have imported two columns of numbers from excel and now i need to use those two columns of numbers to calculate the following...
Average_Error = sum(map(lambda a, b: abs(a - b), My_High, Actual_High))/delta.days
I need the first column to be inserted where I have My_High in the code above, and I need the second column to be inserted where I have Actual_High in the code above. I used the following code to import the numbers...... -
-
I am saving it as CSV (Comma delimited). Other CSV choices are...CSV (MS-DOS) and CSV (Macintosh). However, I do not have a mac and I also tried saving it as CSV (MS-DOS) but that did not work either.Leave a comment:
-
When I open my file, verification.cs v in excel it looks like what i posted above. When I open that same file in notepad it looks exactly like yours. In my code I have...f = open("verificat ion.csv")...I then tried saving it as a .txt file in notepad but I get the same output.Leave a comment:
-
This is how my excel sheet looks. My Highs is in column A and Actual Highs is in column B. Hope this makes sense. Thanks.
My Highs Actual Highs
98 99
99 99
100 99
100 100
99 99
101 102
91 91
92 91
97 97
96 95
98 99
100 100
97 95
86Leave a comment:
No activity results to display
Show More
Leave a comment: