Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install / setup up stockstats #24

Closed
toxilate opened this issue Jan 18, 2018 · 5 comments
Closed

How to install / setup up stockstats #24

toxilate opened this issue Jan 18, 2018 · 5 comments

Comments

@toxilate
Copy link

Hey,

Wondering if somebody could help a guy out in getting this installed and setup up to use? I'm pretty new at this so any advice would be wonderful.

I have python installed, downloaded the files and I researched that I can get the "pandas.DataFrame" through Anaconda. Not sure where to go from here.

Thanks

@Sungod3000
Copy link

Sungod3000 commented Sep 25, 2018

hey, newbie here as well.

import pandas as pd import stockstats df = pd.DataFrame(candles) #im getting the candles data from a numpy arrray "candles = np.array(data)" stock = stockstats.retype(pd.DataFrame(candles)) data['rsi']=stock_df['rsi_14']

i got this from from 2 blogposts i found but im getting
"AttributeError: module 'stockstats' has no attribute 'retype'
not sure how to remedy this.

@jealous
Copy link
Owner

jealous commented Sep 25, 2018

@Sungod3000 you should call stockstats.StockDataFrame.retype

@Sungod3000
Copy link

thanks for the quick answer, i tried that before but ran into the next error. but good that i can exclude that from my troubleshooting list.

you dont happen to have a clean example that shows the process from api calling a json object, choosing one column from json, converting to a pandas array and the converting to stockstats dataframe or something close to that?

@jealous
Copy link
Owner

jealous commented Sep 25, 2018

No, I don't have that. You need to have a DataFrame first.

@jealous
Copy link
Owner

jealous commented Oct 17, 2020

Close this issue because there is no new feedback.

@jealous jealous closed this as completed Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants