Code Monkey home page Code Monkey logo

blog's People

Contributors

sabirjana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blog's Issues

error with pyfolio; AttributeError: 'Series' object has no attribute 'iteritems'

hi, thank you for tis great work,

I got this error with pyfolio:


AttributeError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_21596\3278245655.py in ?()
1 # get performance statistics for strategy
----> 2 pf.show_perf_stats(returns)

~\anaconda3\envs\FX\Lib\site-packages\pyfolio\plotting.py in ?(returns, factor_returns, positions, transactions, turnover_denom, live_start_date, bootstrap, header_rows)
644 APPROX_BDAYS_PER_MONTH)
645 perf_stats = pd.DataFrame(perf_stats_all, columns=['Backtest'])
646
647 for column in perf_stats.columns:
--> 648 for stat, value in perf_stats[column].iteritems():
649 if stat in STAT_FUNCS_PCT:
650 perf_stats.loc[stat, column] = str(np.round(value * 100,
651 1)) + '%'

~\anaconda3\envs\FX\Lib\site-packages\pandas\core\generic.py in ?(self, name)
6200 and name not in self._accessors
6201 and self._info_axis._can_hold_identifiers_and_holds_name(name)
6202 ):
6203 return self[name]
-> 6204 return object.getattribute(self, name)

AttributeError: 'Series' object has no attribute 'iteritems'

Importing NSE data with Zipline

Your blog post seems helpful but it does not gie clarity on where to import the data for NSE data for creating a balance portfolio. The path in the india_nse_data.py also makes it confusing as to which dataset you are referencing to. Can you please give clarity on that?

sj_rsi_nifty100_zipline.ipynb

Hi
It looks like you cannot view the code. Could you reload it ?

By following the code in the article i get an error on sort_values(ascending=True). It says that "by" is missing.
Also on you data/data file the ticker is by name eg: ACC while ingesting the data using the method described with BSE500 it uses 'scrip code' so a number. Is it having an impact ?
Thanks

BL gamma error

hi, I am not able to solve the below error which so weird. can you pls advise me on

ef = pyp.EfficientFrontier(bl_return_confi, S_bl_confi, weight_bounds=(0, 0.1), gamma=0)
TypeError: init() got an unexpected keyword argument 'gamma'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.