- Last update: September 2021
- Environment: Windows
- Compiler: Python and Conda distribution
- Prerequisite: Refinitiv Eikon or Refinitiv Workspace application with access to Eikon Data APIs.
With the rise of Data Scientists, Financial coders, or Traders (aka Citizen Developers), the Pandas library has become the defacto tool for data analysis with Python programming language. Pandas is powerful, flexible, has excellent community support, and it keeps improving. However, developers require a great skill of Python and the library to using Pandas efficiently. This learning curve makes some developers and data scientists stuck with the "coding" time instead of "analysis" time.
PandasGUI is the Graphical User Interface tool that can solve this learning curve issue. The tool wraps Pandas functions into an easy to use data analytic tool for developers and data scientists to start with. This example project shows how to use PandasGUI] too for the basic data analysis with the simple GUI interface. The demo application uses Corona Virus Disease (COVID-19) data from Eikon Data API as an example of a dataset.
Note: The PandasGUI tool is still under development. The tool is not compatible with Eikon Data API and Refinitiv Data Platform (RDP) Libraries - Python on IPython/Notebook environment yet. This example project is focusing on the console environment only.
PandasGUI is a GUI tool for analyzing Pandas DataFrames. The tool is developed by @adamerose. The tool comes with the built-in Pandas function that lets data scientists explore the DataFrame object, DataFrame manipulation, filter data, reframing DataFrame object, and also plotting a simple graph for visualization.
Note:
- This project is based on PandasGUI versions 0.2.7.
The Eikon Data API (aka DAPI) provides access to certain Refinitiv Eikon/Refinitiv Workspace data with seamless workflow with the same data across all applications running on the desktop. The API allows developers to tap into the full breadth of community tools through a modern API with native Python support.
If you are not familiar with Eikon Data API or Python, the following resources are highly recommended to read before you proceed with further steps.
Note:
- This project is based on Eikon Data API versions 1.1.8.
- Pleases see Eikon Data API Usage and Limits Guideline regarding the API data coverage and data limit.
This example requires the following dependencies software and libraries.
- Refinitiv Eikon or Refinitiv Workspace application with access to Eikon Data APIs.
- Python Anaconda or MiniConda distribution/package manager.
- Internet connection.
Note:
- This Project has been qualified with Python version 3.7.9 and Conda version 4.8.3
Please contact your Refinitiv's representative to help you to access Refinitiv Workspace/Eikon credentials. You can generate/manage the AppKey by follow the steps in Eikon Data API Quick Start page.
This example project contains the following files and folders
- src/simple_covid_19_app.py: The example console application file that demonstrates USA COVID-19 data with PandasGUI.
- src/rcep_covid19_data_app.py: The example console application file that demonstrates RCEP (Regional Comprehensive Economic Partnership) countries COVID-19 data with PandasGUI.
- requirements.txt: The project dependencies configuration file.
- images: Project images folder.
- LICENSE.md: Project's license file.
- README.md: Project's README file.
Please follow a step by step guide to setup your Eikon Data API and your AppKey in Eikon Data API Quick Start page.
Please note that the Refinitiv Workspace/Eikon application integrates a Data API proxy that acts as an interface between the Eikon Data API Python library and the Eikon Data Platform. For this reason, the Refinitiv Workspace/Eikon application must be running when you use the Eikon Data API Python library.
The first step is to unzip or download the example project folder into a directory of your choice, then set up a Conda environment for running the application with the steps below.
-
Open Anaconda Prompt and go to the project's folder
-
Run the following command in the Anaconda Prompt application to create a Conda environment named pandasgui for the project.
(base) $>conda env create --name pandasgui python=3.7
-
Once the environment is created, activate Conda environment named
pandasgui
with this command in Anaconda Prompt.(base) $>conda activate pandasgui
-
Run the following command to install Eikon Data API, PandasGUI, and all dependencies in pandasgui environment.
(pandasgui) $>pip install -r requirements.txt
-
Go to the project's src folder. and create a file name
credential.cfg
with the following content.[workspace] app_id = YOUR_APP_ID_HERE
-
Open and log in Refinitiv Workspace/Eikon application with your Workspace/Eikon credential.
-
In the current Anaconda Prompt, stay in project's src folder. Run the following command to run example applications.
(pandasgui) $>src>python simple_covid_19_app.py
(pandasgui) $>src>python rcep_covid19_data_app.py
Example of simple_covid_19_app.py Result:
You can interact with DataFrame, plotting a graph, etc. via the GUI directly.
Example of rcep_covid19_data_app.py Result:
PandasGUI tool provides a simple GUI interface that helps Data Scientists analyze data without requiring a great Python/Pandas programming skill. Data Scientists can just get the data and use the tool for data exploratory, creating simple visualize data, or exporting data to a CSV file. The PandasGUI tool lets everybody access Pandas built-in functions via the GUI which is suitable for a wide range of programming skills. The casual developers/data scientists can use PandasGUI as a starting tool for data analysis while the professional developers can use this tool for quick data checking. Please note that PandasGUI is under active development, we might see some more features in the coming days.
At the same time, the Eikon Data API lets developers rapidly access Refinitiv Eikon/Refinitiv Workspace data and our latest platform capabilities with a few lines of code that easy to understand and maintain.
You can find more detail regarding the PandasGUI, Eikon Data APIs, and related technologies from the following resources:
- Refinitiv Eikon Data API page on the Refinitiv Developer Community web site.
- PandasGUI GitHub page.
- PandasGUI PyPi page.
- PandasGUI: GUI interface for Pandas Library
- PandasGUI: Analyzing Pandas DataFrame with a Graphical User Interface
- Eikon Data API Quick Start Guide page.
- Eikon Data API Tutorial page.
- Python Quants Video Tutorial Series for Eikon API.
- Eikon Data APY Python Reference Guide.
- Eikon Data API Troubleshooting article.
- Get Corona Virus Cases Latest And Time-series Statistic with Eikon Data API(Python) example
For any question related to this example or Eikon Data API, please use the Developers Community Q&A Forum.