欢迎来到天天文库
浏览记录
ID:32796798
大小:1.68 MB
页数:359页
时间:2019-02-15
《54_Python在经济计量统计和数据分析上的应用》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、IntroductiontoPythonforEconometrics,StatisticsandDataAnalysisKevinSheppardUniversityofOxfordthSaturday12October,2013-©2012,2013KevinSheppard2Notestothe2ndEditionThiseditionincludesthefollowingchangesfromthefirstedition(March2012):•ThepreferredinstallationmethodisnowContinuumAnalytics’Anaconda.
2、Anacondaisacompletescientificstackandisavailableforallmajorplatforms.•Newchapteronpandas.pandasprovidesasimplebutpowerfultooltomanagedataandperformbasicanalysis.Italsogreatlysimplifiesimportingandexportingdata.•Newchapteronadvancedselectionofelementsfromanarray.•Numbaprovidesjust-in-timecompila
3、tionfornumericPythoncodewhichoftenproduceslargeper-formancegainswhenpureNumPysolutionsarenotavailable(e.g.loopingcode).•Dictionary,setandtuplecomprehensions•Numeroustypos•AllcodehasbeenverifiedworkingagainstAnaconda1.7.0.iiiContents1Introduction11.1Background...................................
4、..........11.2Conventions.............................................21.3ImportantComponentsofthePythonScientificStack........................31.4Setup................................................41.5TestingtheEnvironment.......................................121.6PythonProgramming........
5、................................121.7Exercises..............................................161.Aregister_python.py..........................................182Python2.7vs.3(andtherest)212.1Python2.7vs.3...........................................212.2IntelMathKernelLibraryandAMDCoreMathLibrar
6、y........................212.3OtherVariants............................................222.ARelevantDifferencesbetweenPython2.7and3...........................233Built-inDataTypes253.1VariableNames...........................................253.2CoreNativeDataTypes..............................
7、.........263.3PythonandMemoryManagement..................................363.4Exercises..............................................384ArraysandMatrices414.1Array.................................................414.2Matrix...................
此文档下载收益归作者所有