{"id":150,"date":"2023-04-01T14:25:19","date_gmt":"2023-04-01T12:25:19","guid":{"rendered":"https:\/\/www.medialearn.de\/?page_id=150"},"modified":"2023-04-01T14:30:49","modified_gmt":"2023-04-01T12:30:49","slug":"laden-von-zeitreihen","status":"publish","type":"page","link":"https:\/\/www.medialearn.de\/index.php\/laden-von-zeitreihen\/","title":{"rendered":"Laden Zeitreihen"},"content":{"rendered":"<p>import pandas as pd<br \/>\nimport matplotlib.pyplot as plt<br \/>\n# SPALTEN t=temp, ta =taupunkt ,S=Speed,P =Druck R =Rain<\/p>\n<p>filename = &#8222;c:\/daten\/q1.csv&#8220;<\/p>\n<p>df= pd.read_csv(filename,encoding_errors=&#8217;ignore&#8216;)<br \/>\nprint(df)<br \/>\nprint(df.head()) #\u00dcberblick<br \/>\nprint(df.THigh) #Spalte<br \/>\nprint(df.THigh.mean()) #Mittelwert Spalte<br \/>\nprint(df.THigh.max()) # Max Spalte<\/p>\n<p>#print(df.values.tolist()) # in Liste wandeln<br \/>\nprint()<br \/>\ntemp=(df.THigh.tolist())<br \/>\ntau=(df.TAHigh.tolist())<br \/>\nvel=(df.SHigh.tolist())<br \/>\np=(df.PHigh.tolist())<br \/>\nrain=(df.RSum.tolist())<\/p>\n<p>print(temp)<br \/>\nprint()<br \/>\nprint(vel)<br \/>\n#plotten der spalten<br \/>\nplt.plot(temp)<br \/>\nplt.show()<br \/>\nplt.plot(vel)<br \/>\nplt.show()<br \/>\nplt.plot(rain)<br \/>\nplt.show()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>import pandas as pd import matplotlib.pyplot as plt # SPALTEN t=temp, ta =taupunkt ,S=Speed,P =Druck R =Rain filename = &#8222;c:\/daten\/q1.csv&#8220; df= pd.read_csv(filename,encoding_errors=&#8217;ignore&#8216;) print(df) print(df.head()) #\u00dcberblick print(df.THigh) #Spalte print(df.THigh.mean()) #Mittelwert Spalte print(df.THigh.max()) # Max Spalte #print(df.values.tolist()) # in Liste wandeln print() temp=(df.THigh.tolist()) tau=(df.TAHigh.tolist()) vel=(df.SHigh.tolist()) p=(df.PHigh.tolist()) rain=(df.RSum.tolist()) print(temp) print() print(vel) #plotten der spalten plt.plot(temp) plt.show() plt.plot(vel) plt.show()&hellip; <a class=\"more-link\" href=\"https:\/\/www.medialearn.de\/index.php\/laden-von-zeitreihen\/\"><span class=\"screen-reader-text\">Laden Zeitreihen<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-150","page","type-page","status-publish","hentry","entry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":2,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/150\/revisions"}],"predecessor-version":[{"id":153,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/150\/revisions\/153"}],"wp:attachment":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/media?parent=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}