excellentpandas
Very quickly load pandas DataFrames in Excel
Python is awesome and I love it for doing all sorts of data manipulation. But sometimes Microsoft Excel remains the best place to do quick data exploration and filtering. So thanks to the brilliant xlwings, it's easy to integrate the two. This module has some very simple functions to make this as easy as possible.
Say you have this script:
>>> df = read_data()
>>> result = df.groupby("blah")[vars].agg(something_complex)
And you want to explore result quickly in Excel.
You can use one of the following functions to immediately launch the DataFrame in a new Excel Workbook on your desktop via a non-blocking call:
show_in_excel(df)
>>> from excellentpandas import show_in_excel
>>> df = read_data()
>>> result = df.groupby("blah")[vars].agg(something_complex)
>>> show_in_excel(result)
>>>
Use .pipe(via_excel) for a chained version
>>> from excellentpandas import via_excel
>>> df = read_data()
>>> result = df.groupby("blah")[vars].agg(something_complex).pipe(via_excel)
>>>
Show info as well with .pipe(via_info_excel)
>>> from excellentpandas import via_info_excel
>>> df = read_data()
>>> result = df.groupby("blah")[vars].agg(something_complex).pipe(via_info_excel)
<class 'pandas.core.frame.DataFrame'>
Int64Index: 16 entries, 2004 to 2019
Data columns (total 6 columns):
...
dtypes: float64(6)
memory usage: 896.0 bytes
>>>
Install
$ pip install -U excellentpandas
Metadata
Release files for excellentpandas 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| excellentpandas-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / excellentpandas-0.1.1-py3-none-any.whl
| Download URL | excellentpandas-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0231229a2bcbb698c2e97843ab6119dea6e39222c687bb6fe3a959ce3bb1c30e
|
|
BLAKE2b-256 checksum How to use checksums |
e193ad1cd7aca6de7e82a3785b0ca16b62645eb2122ad2b1845930124c47a81f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|