Skip to content

Commit

Permalink
Merge pull request #10 from petbox-dev/develop
Browse files Browse the repository at this point in the history
v1.0.4
  • Loading branch information
dsfulf committed Jun 12, 2020
2 parents d4a5f83 + 732a72e commit 5eb1b4b
Show file tree
Hide file tree
Showing 15 changed files with 868 additions and 220 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Other things
*.ipynb
test/test*.csv

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -119,4 +120,4 @@ venv.bak/

# mypy
.mypy_cache/
*._py
*._py
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ and SQL-style "group by" and join operations.
| | `itertuples <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.itertuples>`_, |
| | `itercols <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.itercols>`_ |
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| Functional Methods | `row_map <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.row_map>`_, |
| Functional Methods | `row_map <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.row_map>`_ |
| | `col_map <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.col_map>`_, |
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| Dict-like Methods | `keys <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra.keys>`_, |
Expand Down Expand Up @@ -113,7 +113,7 @@ and SQL-style "group by" and join operations.
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
| Indexing Methods | `_slice <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra._slice>`_, |
| | `_index <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra._index>`_, |
| | `n_dindex <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra._ndindex>`_ |
| | `_ndindex <https://tafra.readthedocs.io/en/latest/api.html#tafra.base.Tafra._ndindex>`_ |
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+

Getting Started
Expand Down
38 changes: 33 additions & 5 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ Methods
from_series
read_sql
read_sql_chunks
read_csv
as_tafra
to_records
to_list
to_tuple
to_array
to_pandas
to_csv
rows
columns
data
Expand All @@ -72,6 +74,8 @@ Methods
update_inplace
update_dtypes
update_dtypes_inplace
parse_object_dtypes
parse_object_dtypes_inplace
rename
rename_inplace
coalesce
Expand All @@ -82,6 +86,9 @@ Methods
pprint
pformat
to_html
_slice
_index
_ndindex


Helper Methods
Expand All @@ -106,21 +113,21 @@ Object Formatter

.. currentmodule:: tafra.formatter

.. autoclass:: ObjectFormatter
.. autosummary::

.. automethod:: __getitem__
.. automethod:: __setitem__
.. automethod:: __delitem__
ObjectFormatter


Detailed Reference
==================


Tafra
-----

.. currentmodule:: tafra.base


Methods
~~~~~~~

Expand All @@ -131,12 +138,14 @@ Methods
.. automethod:: from_records
.. automethod:: read_sql
.. automethod:: read_sql_chunks
.. automethod:: read_csv
.. automethod:: as_tafra
.. automethod:: to_records
.. automethod:: to_list
.. automethod:: to_tuple
.. automethod:: to_array
.. automethod:: to_pandas
.. automethod:: to_csv
.. autoattribute:: rows
.. autoattribute:: columns
.. autoattribute:: data
Expand All @@ -160,6 +169,8 @@ Methods
.. automethod:: update_inplace
.. automethod:: update_dtypes
.. automethod:: update_dtypes_inplace
.. automethod:: parse_object_dtypes
.. automethod:: parse_object_dtypes_inplace
.. automethod:: rename
.. automethod:: rename_inplace
.. automethod:: coalesce
Expand All @@ -170,11 +181,15 @@ Methods
.. automethod:: pprint
.. automethod:: pformat
.. automethod:: to_html
.. automethod:: _slice
.. automethod:: _index
.. automethod:: _ndindex


Helper Methods
~~~~~~~~~~~~~~

.. class:: tafra.base.Tafra
.. class:: Tafra
:noindex:

.. automethod:: union
Expand All @@ -186,6 +201,7 @@ Helper Methods
.. automethod:: left_join
.. automethod:: cross_join


Aggregations
------------

Expand Down Expand Up @@ -219,3 +235,15 @@ Aggregations
.. autoclass:: CrossJoin

.. automethod:: apply


Object Formatter
----------------

.. currentmodule:: tafra.formatter

.. autoclass:: ObjectFormatter

.. automethod:: __getitem__
.. automethod:: __setitem__
.. automethod:: __delitem__
9 changes: 9 additions & 0 deletions docs/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Version History
:noindex:


1.0.4
-----

* Add ``read_csv``, ``to_csv``
* Various refactoring and improvement in data validation
* Add ``typing_extensions`` to dependencies
* Change method of ``dtype`` storage, extract ``str`` representation from ``np.dtype()``.


1.0.3
-----

Expand Down
2 changes: 1 addition & 1 deletion tafra/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0.3'
__version__ = '1.0.4'

from .base import Tafra, object_formatter
from .group import GroupBy, Transform, IterateBy, InnerJoin, LeftJoin

0 comments on commit 5eb1b4b

Please sign in to comment.