This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi all,
Hope you all are well.
I'm having little problem with python output. I'm using AYX to get data from Eikon API. In this case I need to get Lipper and RIC code to replace ISIN code if those exist.
All looks good until output. Not being a Python wizard, I'm pretty much out of options now.
See attachment for a error message.
Any help would be great.
BR, Juha
Solved! Go to Solution.
Can you check whether "codes" is a proper data frame? This is needed to output it back to the Alteryx workflow:
https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Python/ta-p/197860
Hi,
Thanks for your reply @PhilippK
My output seems to be
<class 'pandas.core.frame.DataFrame'>
Just need to figure out how to convert to pd.DataFrame. Any tips?
Cheers,
Juha
you are welcome!
Check out those posts:
I wish you a great weekend
Phil
Hi @PhilippK ,
Thanks for the links you sent. Interesting reading.
Can you check my attachment?
I'm still struggling with output. In the attachment all looks perfect at Out[171]. After resetting the Index, as suggested in few forums, error message is now
[CachedData.write] couldn't find conversion for Instrument ("string") from pandas to yxdb
Any suggestions I should try next?
Cheers,
Juha
Hello @JuhaP ,
unfortunately, I am not a Python expert, but I found something similar here:
Let me know whether something works for you.
Best regards
Phil
Hi @PhilippK ,
I found a solution in one of links you sent
Solution is
prices = pd.DataFrame(df)
prices.reset_index(inplace=False)
prices = prices.applymap(str)
Cheers,
Juha