One of the quantitative transactions

Source: Internet
Author: User

10 minutes to fix pandas:http://www.cnblogs.com/chaosimple/p/4153083.html.

1. You can create a series,pandas by passing a list object to create the reshape index by default:

s = PD. Series ([1,3,5,np.nan,6,8]) Logger.info (s)---------------------------init  info   interested in stock:000001. Xsheinit  INFO   0     1             1     3             2     5             3   NaN             4     6             5     8             dtype: Float64

  

=====================

1. How to access all stock base data

2.

Error

==============================================

Your policy terminated abnormally: Traceback (most recent call last): File "/hammer_data/user_strategy/user_strategy.py", line A, in init DP = Get _fundamentals (Query (Fundamentals.financial_indicator.adjusted_net_profit). Filter (Fundamentals.stockcode.in_ ([' 000001.XSHE '])), ' 2016-08-1 ', ' 4q ') valueerror:get_fundamentals incoming query date 2016-08-01 later than current backtesting date 2016-01-04, Prohibit incoming date later than current backtesting date

======================================

Init INFO * * Deduction non-net profit ***************************************************** Init WARN 000001.XSHE  2015-12-31 17754000000 2015-09-30 11591000000 2015-06-30 5637000000 2015-03-30              19841000000 Init INFO * * Deduction non-net profit growth *********************************************** INIT WARN 000001.XSHE 2015-12-31 13.0036 2015-09-30 14.9331 2015-06-30 11.2932 2                015-03-30 30.8255 Init INFO * * Operating income growth ************************************************* Init WARN             000001.XSHE 2015-12-31 30.1934 2015-09-30 34.0944 2015-06-30 28.3913                2015-03-30 40.6561 Init INFO * * ROE (deduction/average) ************************************* init WARN 000001.XSHE 2015-12-31 12.3255 2015-09-30 8.2256 2015-06-30 4 .2122 2015-03-30 16.3280 Init INFO * * ROE (deduct/weighted) ************************************* init WARN 000001.X             SHE 2015-12-31 12.40 2015-09-30 8.42 2015-06-30 4.21                2015-03-30 16.38 Init INFO * * ROE (deduct/diluted) ************************************* init WARN             000001.XSHE 2015-12-31 11.2985 2015-09-30 7.6823 2015-06-30 4.1200 2015-03-30 15.1517 INIT INFO *****************************************************************

  

One of the quantitative transactions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.