Introduction to Python for Econometrics, Statistics and Data Analysis
g g g g g g g g
KevingSheppardgUn
iversitygofgOxford
Tuesdayg5thgAugust,g2014
,©2012,g 2013,g 2014g Keving Sheppard
2
,Changes since the Second Edition
g g g g
Versiong2.2.1g(Augustg2014)
• Fixedgtyposgreportedgbygagreaderg–gthanksgtogIlyagSorvachev
Versiong2.2g(Julyg2014)
• CodegverifiedgagainstgAnacondag2.0.1.
• Addedgdiagnosticgtoolsgandgagsimpleg methodgtogusegexternalgcodegingthegCythongsection.
• Updatedg theg Numbag sectiong tog reflectg recentg changes.
• Fixedgsomegtyposgingthegchaptergong Performancegandg Optimization.
• AddedgexamplesgofgjoblibgandgIPython’sgclustergtogthegchaptergongrunninggcodegingparallel
Versiong2.1g(Februaryg2014)
• Newgchaptergintroducinggobjectgorientedgprogramminggasgag methodgtogprovidegstructuregandgorga-
g nizationgtogrelatedgcode.
• Addedgseaborngtogthegrecommendedgpackageglist,gandghavegincludedgitgbegdefaultgingtheggraphics
g chapter.
• BasedgongexperiencegteachinggPythongtogeconomicsgstudents,gthegrecommendedginstallationghas
g beengsimplifiedgbygremovinggthegsuggestiongtogusegvirtualgenvironment.g Thegdiscussiongofgvirtua
lgenvironmentsgasgbeengmovedgtogthegappendix.
• Rewrotegpartsgofgthegpandasgchapter.
• CodegverifiedgagainstgAnacondag1.9.1.
Versiong2.02g(Novemberg2013)
• Changedgtheg Anacondaginstallgtogusegbothgcreategandginstall,gwhichgshowsghowg toginstallgadditionalg
packages.
• Fixedgsomegmissinggpackagesgingthegdirectginstall.
• Changedgthegconfiguration gofgIPythongtogreflectgbestgpractices.
• AddedgsubsectiongcoveringgIPythongprofiles.
i
, Versiong2.01g(Octoberg2013)
• UpdatedgAnacondag tog 1.8g andg addedgsomeg additionalg packagesg togtheginstallationgforg Spyder.
• SmallgsectiongaboutgSpydergasgaggoodgstartinggIDE.
ii
g g g g g g g g
KevingSheppardgUn
iversitygofgOxford
Tuesdayg5thgAugust,g2014
,©2012,g 2013,g 2014g Keving Sheppard
2
,Changes since the Second Edition
g g g g
Versiong2.2.1g(Augustg2014)
• Fixedgtyposgreportedgbygagreaderg–gthanksgtogIlyagSorvachev
Versiong2.2g(Julyg2014)
• CodegverifiedgagainstgAnacondag2.0.1.
• Addedgdiagnosticgtoolsgandgagsimpleg methodgtogusegexternalgcodegingthegCythongsection.
• Updatedg theg Numbag sectiong tog reflectg recentg changes.
• Fixedgsomegtyposgingthegchaptergong Performancegandg Optimization.
• AddedgexamplesgofgjoblibgandgIPython’sgclustergtogthegchaptergongrunninggcodegingparallel
Versiong2.1g(Februaryg2014)
• Newgchaptergintroducinggobjectgorientedgprogramminggasgag methodgtogprovidegstructuregandgorga-
g nizationgtogrelatedgcode.
• Addedgseaborngtogthegrecommendedgpackageglist,gandghavegincludedgitgbegdefaultgingtheggraphics
g chapter.
• BasedgongexperiencegteachinggPythongtogeconomicsgstudents,gthegrecommendedginstallationghas
g beengsimplifiedgbygremovinggthegsuggestiongtogusegvirtualgenvironment.g Thegdiscussiongofgvirtua
lgenvironmentsgasgbeengmovedgtogthegappendix.
• Rewrotegpartsgofgthegpandasgchapter.
• CodegverifiedgagainstgAnacondag1.9.1.
Versiong2.02g(Novemberg2013)
• Changedgtheg Anacondaginstallgtogusegbothgcreategandginstall,gwhichgshowsghowg toginstallgadditionalg
packages.
• Fixedgsomegmissinggpackagesgingthegdirectginstall.
• Changedgthegconfiguration gofgIPythongtogreflectgbestgpractices.
• AddedgsubsectiongcoveringgIPythongprofiles.
i
, Versiong2.01g(Octoberg2013)
• UpdatedgAnacondag tog 1.8g andg addedgsomeg additionalg packagesg togtheginstallationgforg Spyder.
• SmallgsectiongaboutgSpydergasgaggoodgstartinggIDE.
ii