adnanhemani on gh-pages
Generated by commit 7b7f81d0c2a… (compare)
davidwagner on issue_423
davidwagner on master
first draft of code final code push Merge pull request #424 from da… (compare)
docker exec'd in and ran
makeas root, so no permissions error for me ;-) )
Some error about getting a string when it expects a float. I still haven't made sense of the idea that a column in Tables need not have a consistent type. Is that really the case? why?
nasa_temp = "http://climate.nasa.gov/system/internal_resources/details/original/647_Global_Temperature_Data_File.txt" temp = ds.Table.read_table(nasa_temp, skiprows=range(4), na_values = "*", delim_whitespace=True, names=["Year", "Annual", "FiveYear"]) ## Pandas plots this just fine temp.to_df().plot() ## datascience not so much temp.plot("Year") plt.plot(temp["Year"], temp["Annual"])
takebehaves like pandas
iloc, pretty cool; but I agree with the thread in that PR that having both notations is confusing to a beginner; I've already made that mistake on
ilocbefore. Will have to decide what is better to teach the students.
## Tables method: (needs to select column first otherwise it still plots all columns!?) co2.select(["decimal.date", "average"]).plot("decimal.date") ## matplotlib style, also requires  subsetting plt.plot(co2["decimal.date"], co2["average"])