Idea database to a pandas DF using win32com.client
bluered83132
Forums
Hello everyone! I'm looking to export my database into a pandas dataframe.
When utilizing an internal compiler, the process looks like this:
df = Idea.idea2py(database='mydatabase.idm', client=client)
However, I'd like to use the original Python for its additional debugging features.
import win32com.client as win32client
idea = win32client.Dispatch(dispatch="Idea.IdeaClient")
db = idea.opendatabase("mydatabase.idm")
What Python code should I use to accomplish this using the IdeaClient library?
Hi bluered83132,
Hi bluered83132,
What the IDEALib.py is doing when it is calling the idea2py function is that it is first saving the file as a text file. Here is the function from IDEALib.py that performs this task:
You would then import the file using pandas.
Hope that helps out a bit.