Skip to content

help with noob code? #132

Answered by Trembles
Web3dGuy asked this question in Q&A
Feb 27, 2021 · 2 comments · 16 replies
Discussion options

You must be logged in to vote

You can get rid of that wall of numeric conversions in your functions with a one liner,

data = [pd.to_numeric(i) for i in data]

And it seems that when you call get_bars() in the update function you aren't doing anything with the returned data? Then you have to open the csv again to get the data you just return with the same function.

And in that save to csv you are saving the same data multiple times?

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
14 replies
@Web3dGuy
Comment options

@highfestiva
Comment options

@highfestiva
Comment options

@Web3dGuy
Comment options

@highfestiva
Comment options

Answer selected by Web3dGuy
Comment options

You must be logged in to vote
2 replies
@Web3dGuy
Comment options

@highfestiva
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants