{"id":78,"date":"2018-10-05T11:07:28","date_gmt":"2018-10-05T15:07:28","guid":{"rendered":"http:\/\/sites.nd.edu\/crivaldi\/?p=78"},"modified":"2019-11-05T14:46:28","modified_gmt":"2019-11-05T18:46:28","slug":"python-intro","status":"publish","type":"post","link":"https:\/\/sites.nd.edu\/crivaldi\/2018\/10\/05\/python-intro\/","title":{"rendered":"Python intro"},"content":{"rendered":"<p><em>*Note to all users: As of 07\/14\/2019, all posts have been moved to (and are being updated at <a href=\"https:\/\/crivaldi.github.io\">crivaldi.github.io . <\/a>I don&#8217;t have plans to shut this site down, but I have no idea how long it will be maintained by the university in the future.*<\/em><\/p>\n<h1>Getting started with Python<\/h1>\n<p>Helpful, lengthy explanation of indexes and slices in arrays: <a href=\"https:\/\/stackoverflow.com\/a\/24713353\">https:\/\/stackoverflow.com\/a\/24713353<\/a><\/p>\n<h2>Numpy<\/h2>\n<p>Numpy is a library for arrays.<\/p>\n<p>Numpy basics: <a href=\"https:\/\/docs.scipy.org\/doc\/numpy-1.15.0\/user\/quickstart.html\">https:\/\/docs.scipy.org\/doc\/numpy-1.15.0\/user\/quickstart.html<\/a><\/p>\n<p>More explanation of data types (numpy): <a href=\"https:\/\/docs.scipy.org\/doc\/numpy-1.15.0\/user\/basics.types.html\">https:\/\/docs.scipy.org\/doc\/numpy-1.15.0\/user\/basics.types.html<\/a><\/p>\n<p>Why do we want to use numpy vs regular python lists? <a href=\"https:\/\/stackoverflow.com\/questions\/993984\/what-are-the-advantages-of-numpy-over-regular-python-lists\">https:\/\/stackoverflow.com\/questions\/993984\/what-are-the-advantages-of-numpy-over-regular-python-lists<\/a><\/p>\n<h2>Pandas<\/h2>\n<p>Pandas is a python library for data frames. Understanding the basics of numpy will be helpful before getting into pandas.<\/p>\n<p>Pandas introduction: <a href=\"http:\/\/pandas.pydata.org\/pandas-docs\/stable\/10min.html\">http:\/\/pandas.pydata.org\/pandas-docs\/stable\/10min.html<\/a><\/p>\n<p>And another: <a href=\"https:\/\/www.learnpython.org\/en\/Pandas_Basics\">https:\/\/www.learnpython.org\/en\/Pandas_Basics<\/a><\/p>\n<p>Selecting data in a dataframe (iloc): <a href=\"https:\/\/www.shanelynn.ie\/select-pandas-dataframe-rows-and-columns-using-iloc-loc-and-ix\/\">https:\/\/www.shanelynn.ie\/select-pandas-dataframe-rows-and-columns-using-iloc-loc-and-ix\/<\/a><\/p>\n<h3>Tutorial Challenge from 10\/05\/18 &#8211; Prompt and corresponding code<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-84 size-full\" src=\"http:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python-Challenge.jpg\" alt=\"\" width=\"765\" height=\"564\" srcset=\"https:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python-Challenge.jpg 765w, https:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python-Challenge-300x221.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-83 size-full\" src=\"http:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python_challenge.jpg\" alt=\"\" width=\"749\" height=\"518\" srcset=\"https:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python_challenge.jpg 749w, https:\/\/sites.nd.edu\/crivaldi\/files\/2018\/10\/Python_challenge-300x207.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>*Note to all users: As of 07\/14\/2019, all posts have been moved to (and are being updated at crivaldi.github.io . I don&#8217;t have plans to shut this site down, but I have no idea how long it will be maintained by the university in the future.* Getting started with Python Helpful, lengthy explanation of indexes &hellip; <a href=\"https:\/\/sites.nd.edu\/crivaldi\/2018\/10\/05\/python-intro\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Python intro&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2790,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[29879],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/users\/2790"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":6,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":173,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/posts\/78\/revisions\/173"}],"wp:attachment":[{"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.nd.edu\/crivaldi\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}