My thoughts on Python for accounting research

There is a temptation for accounting PhD students to invest in learning Python. However, I would recommend accounting PhD students focus more on SAS + Stata than on Python in their first year for a few practical and technical reasons:

  1. Although Python looks trendy, still few accounting researchers master this language. Research is oftentimes a co-authorship. If the research code can only be understood by one person in a research team, it will be counter productive.
  2. Because not many researchers use Python yet, Python users cannot take advantage of many ready-to-use code written in SAS which has a larger user base.
  3. Debugging in Python is harder than in commercial software such as SAS and Stata. Freeware sounds appealing, but I always find I end up spending more time when using freeware which typically lacks detailed and excellent help documentation.
  4. Like Stata, at least for now, Python cannot manipulate large datasets (limited by the memory size of computer). If you are going to handle mega datasets such as intra-day bond/stock transaction data, Python will be a pain.

SAS + Stata is a solid solution I advocate. I use SAS for SQL and Stata for everything else. Python is suitable for certain research topics such as textual analysis. If you decide to invest in learning Python, you can count on the following learning resources:

  1. The Python Tutorial on the official Python website: https://docs.python.org/3.10/tutorial/index.html – easy for a fast read.
  2. There are tons of Python courses on Udemy: https://www.udemy.com – year-round discounted price is $13 per course.
  3. Anand et al. authored an excellent methodology article – Vic Anand, Khrystyna Bochkay, Roman Chychyla and Andrew Leone (2020 isbn), “Using Python for Text Analysis in Accounting Research (forthcoming)”, Foundations and Trends ® in Accounting: Vol. xx, No. xx, pp 1–18. DOI: 10.1561/XXXXXXXXX.
This entry was posted in Learning Resources, Python. Bookmark the permalink.

1 Response to My thoughts on Python for accounting research

  1. Goodnews Hypo says:

    Python also help you choose another career when academia fails you.

Leave a Reply

Your email address will not be published.