- Python Algorithmic Trading Cookbook
- Pushpak Dagade
- 262字
- 2021-06-11 18:29:19
Handling and Manipulating Date, Time, and Time Series Data
Time series data is ubiquitous when it comes to algorithmic trading. So, handling, managing, and manipulating time series data is essential to performing algorithmic trading successfully. This chapter has various recipes that demonstrate how algorithmic trading can be done using the Python standard library and pandas, which is a Python data analysis library.
For our context, time series data is a series of data consisting of equally spaced timestamps and multiple data points describing trading data in that particular time frame.
When handling time series data, the first thing you should know is how to read, modify, and create Python objects that understand date and time. The Python standard library includes the datetime module, which provides the datetime and timedelta objects, which can handle everything about the date and time. The first seven recipes in this chapter talk about this module. The remainder of this chapter talks about handling time series data using the pandas library, which is a very efficient library for data analysis. The pandas.DataFrame class will be used in our recipes.
The following is a list of the recipes in this chapter:
- Creating datetime objects
- Creating timedelta objects
- Operations on datetime objects
- Modifying datetime objects
- Converting a datetime to a string
- Creating a datetime object from a string
- The datetime object and time zones
- Creating a pandas.DataFrame object
- DataFrame manipulation—renaming, rearranging, reversing, and slicing
- DataFrame manipulation—applying, sorting, iterating, and concatenating
- Converting a DataFrame into other formats
- Creating a DataFrame from other formats
- 工業機器人技術及應用
- Hadoop 2.x Administration Cookbook
- Effective DevOps with AWS
- Visual C# 2008開發技術詳解
- 可編程控制器技術應用(西門子S7系列)
- 21天學通Java
- Embedded Programming with Modern C++ Cookbook
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- 構建高性能Web站點
- ESP8266 Home Automation Projects
- Ruby on Rails敏捷開發最佳實踐
- Photoshop行業應用基礎
- Building Google Cloud Platform Solutions
- ADuC系列ARM器件應用技術
- PHP求職寶典