Sep-20-2019, 01:09 PM
One buoy, two months worth, from .txt file:
https://www.ndbc.noaa.gov/view_text_file...ical/dart/
I want to paste this sort of data into a list and automate the removal of what I don't need as well as add commas to make it into a usable list which I could just plop into something like:
"Snippet of code I provided is working example how to solve this type of problems. If you don't know how to use it then you should say so. Nobody is 'playing' here."
I can't tell the difference between an example and usable code. Sorry.
I have coded in HTML and CSS so when a colleague suggested I write a code in Python, I thought that that sounded great. It seemed like something I could pick up in an hour, enough anyhow to write a simple program. All I need is above, but I just need to insert commas and remove other info from the raw data. Like I said, if I could just replace spaces with commas, I could deal with the rest by scrolling, no biggie. I don't care if the dates end up as list elements, but it would be nice if they didn't.
2nd max was just a simple way to remove the 9999.000s.
https://www.ndbc.noaa.gov/view_text_file...ical/dart/
I want to paste this sort of data into a list and automate the removal of what I don't need as well as add commas to make it into a usable list which I could just plop into something like:
list1 = [4594.844, 4594.844 ,4594.843 ,4594.844 ,4594.843 ,4594.842 ,4594.842] >>> print(max(list1))Your calculation is close.
"Snippet of code I provided is working example how to solve this type of problems. If you don't know how to use it then you should say so. Nobody is 'playing' here."
I can't tell the difference between an example and usable code. Sorry.
I have coded in HTML and CSS so when a colleague suggested I write a code in Python, I thought that that sounded great. It seemed like something I could pick up in an hour, enough anyhow to write a simple program. All I need is above, but I just need to insert commas and remove other info from the raw data. Like I said, if I could just replace spaces with commas, I could deal with the rest by scrolling, no biggie. I don't care if the dates end up as list elements, but it would be nice if they didn't.
2nd max was just a simple way to remove the 9999.000s.