View data in Python.
If you are a R user, please find out `ess-view-data'.
Clone this repository, or install from MELPA (not yet now). Add the following to your .emacs
:
(require 'python-view-data)
Call python-view-data-print
, select a pandas dataframe, and then a buffer will pop up with data listed/printed. Further verbs can be done, like filter (query), select/unselect, mutate, group/ungroup, count, unique, describe, and etc. It can be reset (python-view-data-reset
) any time.
To avoid mistaking break the orignial data, it will make a copy of the dataframe as default.
You can the history in the buffer of *Python View Data*
.
- pandas.to_csv
- pandas.to_csv
- pandas.to_csv
- pandas.to_excel
NOTE: it will make a copy of the data and then does the following action
The entry function to view data:
- python-view-data-print
In a *Python*
buffer or a Python script buffer, M-x python-view-data-print
.
Setting:
- python-view-data-toggle-maxprint: toggle limitation of lines per page to print
Verbs:
-
python-view-data-filter or python-view-data-query: query
-
python-view-data-select / python-view-data-unselect
-
python-view-data-sort
-
python-view-data-group / python-view-data-ungroup : set/unset groupby columns
-
python-view-data-reset
-
python-view-data-unique
-
python-view-data-count
-
python-view-data-describe
-
python-view-data-goto-page / -next-page / -preious-page / -first-page / -last-page / -page-number
-
python-view-data-save