Look into the data of your DataFrames with Watson Explorer
Project description
Watson Explorer
Explore the data in your Pandas DataFrames using Watson Explorer.
Installation
Use the package manager pip to install Watson Explorer.
pip install WatsonExplorer
Usage
from WatsonExplorer import Explorer
"""Place the following statement at the end of your Python file."""
Explorer()
"""
After running the script, it will extract all the dataframes from the file, delete all old HTML files, create new HTML files, and open a local host to display the DataFrames.
You can access the DataFrames using the dropdown menu. To stop the local host, click on the 'Stop Server' button, and the tab sheet will automatically close.
"""
"""REMARK:
It is not possible to view data from dataframes that are not linked to variables.
For example:
"""
example_dict = {'A' : [1,2,3,4], 'B' : [5,6,7,8]}
class Example():
def __init__(self, dictionary=None):
self.dataframe = pd.DataFrame(example_dict)
def return_df_1(self):
return self.dataframe
def return_df_2(self):
self.dataframe2 = self.dataframe.assign(D='Test')
return self.dataframe2
example = Example(example_dict)
example.return_df_1() # The explorer will not include this dataframe.
example_df = example.return_df_2() # The explorer will include this dataframe.
"""REMARK 2:
This library is not designed to load more than 20,000 rows (yet). We recommend using .head() to reduce the size of your dataframe before using this library.
"""
Contributing
General
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
CSS
Feel free to adjust the CSS file if you don't like the styling.
Also, if you are a very gifted front-end developer, please let me know. I'm open to upgrading the interface.
License
Distributed under the MIT License. See LICENSE.txt
for more information.
Contact
Contact: https://heinburgmans.com
Project Link: https://github.com/HeintjeB/watson
Acknowledgments
The creation of this explorer was inspired by Spyder's Variable Explorer. Shout-out to DataTables.net whose code heavily improved this library!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for WatsonExplorer-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e10c73463fab6e097842233873252f4a866d2e5bf8ed83712fe66f20a1115ff |
|
MD5 | 724c88a917185dc39955bf7853cc0e98 |
|
BLAKE2b-256 | 05e5438135011ede7ebd59ee89036225feee33f89212bd0dc55008acc7cbf108 |