Agate

Latest version: v1.10.2

Safety actively analyzes 629599 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

1.1.0

------------------------

This version of agate introduces three major changes.

1. :class:`.Table`, :meth:`.Table.from_csv` and :meth:`.TableSet.from_csv` now all take ``column_names`` and ``column_types`` as separate arguments instead of as a sequence of tuples. This was done to enable more flexible type inference and to streamline the API.
2. The interfaces for :meth:`.TableSet.aggregate` and :meth:`.Table.compute` have been changed. In both cases the new column name now comes first. Aggregations have also been modified so that the input column name is an argument to the aggregation class, rather than a third element in the tuple.
3. This version drops support for Python 2.6. Testing and bug-fixing for this version was taking substantial time with no evidence that anyone was actually using it. Also, multiple dependencies claim to not support 2.6, even though agate's tests were passing.

* DataType's now have :meth:`.DataType.csvify` and :meth:`.DataType.jsonify` methods for serializing native values.
* Added a dependency on `isodate <https://github.com/gweis/isodate>`_ for handling ISO8601 formatted dates. (#233)
* :class:`.Aggregation` results are no longer cached. (378)
* Removed `Column.aggregate` method. Use :meth:`.Table.aggregate` instead. (378)
* Added :meth:`.Table.aggregate` for aggregating single column results. (378)
* :class:`.Aggregation` subclasses now take column names as their first argument. (378)
* :meth:`.TableSet.aggregate` and :meth:`.Table.compute` now take the new column name as the first argument. (378)
* Remove support for Python 2.6.
* :meth:`.Table.to_json` is implemented. (345)
* :meth:`.Table.from_json` is implemented. (344, 347)
* :class:`.Date` and :class:`.DateTime` type testing now takes specified format into account. (361)
* :class:`.Number` data type now takes a ``float_precision`` argument.
* :class:`.Number` data types now work with native float values. (370)
* :class:`.TypeTester` can now validate Python native types (not just strings). (367)
* :class:`.TypeTester` can now be used with the :class:`.Table` constructor, not just :meth:`.Table.from_csv`. (350)
* :class:`.Table`, :meth:`.Table.from_csv` and :meth:`.TableSet.from_csv` now take ``column_names`` and ``column_types`` as separate parameters. (350)
* :const:`.DEFAULT_NULL_VALUES` (the list of strings that mean null) is now importable from ``agate``.
* :meth:`.Table.from_csv` and :meth:`.Table.to_csv` are now unicode-safe without separately importing csvkit.
* ``agate`` can now be used as a drop-in replacement for Python's ``csv`` module.
* Migrated `csvkit <https://csvkit.readthedocs.org>`_'s unicode CSV reading/writing support into agate. (#354)

1.0.1

------------------------

* TypeTester now takes a "limit" arg that restricts how many rows it tests. (332)
* Table.from_csv now supports CSVs with neither headers nor manual column names.
* Tables can now be created with automatically generated column names. (331)
* File handles passed to Table.to_csv are now left open. (330)
* Added Table.print_csv method. (307, 339)
* Fixed stripping currency symbols when casting Numbers from strings. (333)
* Fixed two major join issues. (336)

1.0.0

------------------------

* Table.from_csv now defaults to TypeTester() if column_info is not provided. (324)
* New tutorial section: "Navigating table data" (315)
* 100% test coverage reached. (312)
* NullCalculationError is now a warning instead of an error. (311)
* TableSet is now a subclass of MappedSequence.
* Rows and Columns are now subclasses of MappedSequence.
* Add Column.values_without_nulls_sorted().
* Column.get_data_without_nulls() is now Column.values_without_nulls().
* Column.get_data_sorted() is now Column.values_sorted().
* Column.get_data() is now Column.values().
* Columns can now be sliced.
* Columns can now be indexed by row name. (301)
* Added support for Python 3.5.
* Row objects can now be sliced. (303)
* Replaced RowSequence and ColumnSequence with MappedSequence.
* Replace RowDoesNotExistError with KeyError.
* Replaced ColumnDoesNotExistError with IndexError.
* Removed unnecessary custom RowIterator, ColumnIterator and CellIterator.
* Performance improvements for Table "forks". (where, limit, etc)
* TableSet keys are now converted to row names during aggregation. (291)
* Removed fancy __repr__ implementations. Use __str__ instead. (290)
* Rows can now be accessed by name as well as index. (282)
* Added row_names argument to Table constructor. (282)
* Removed Row.table and Row.index properties. (287)
* Columns can now be accessed by index as well as name. (281)
* Added column name and type validation to Table constructor. (285)
* Table now supports variable-length rows during construction. (39)
* aggregations.Summary implemented for generic aggregations. (181)
* Fix TableSet.key_type being lost after proxying Table methods. (278)
* Massive performance increases for joins. (277)
* Added join benchmark. (73)

0.11.0

------------------------

* Implemented __repr__ for Table, TableSet, Column and Row. (261)
* Row.index property added.
* Column constructor no longer takes a data_type argument.
* Column.index and Column.name properties added.
* Table.counts implemented. (271)
* Table.bins implemented. (267, 227)
* Table.join now raises ColumnDoesNotExistError. (264)
* Table.select now raises ColumnDoesNotExistError.
* computations.ZScores moved into agate-stats.
* computations.Rank cmp argument renamed comparer.
* aggregations.MaxPrecision added. (265)
* Table.print_bars added.
* Table.pretty_print renamed Table.print_table.
* Reimplement Table method proxying via allow_tableset_proxy decorator. (263)
* Add agate-stats references to docs.
* Move stdev_outliers, mad_outliers and pearson_correlation into agate-stats. (260)
* Prevent issues with applying patches multiple times. (258)

0.10.0

---------------------------

* Add reverse and cmp arguments to Rank computation. (248)
* Document how to use agate-sql to read/write SQL tables. (238, 241)
* Document how to write extensions.
* Add monkeypatching extensibility pattern via utils.Patchable.
* Reversed order of argument pairs for Table.compute. (249)
* TableSet.merge method can be used to ungroup data. (253)
* Columns with identical names are now suffixed "2" after a Table.join.
* Duplicate key columns are no longer included in the result of a Table.join. (250)
* Table.join right_key no longer necessary if identical to left_key. (254)
* Table.inner_join is now more. Use `inner` keyword to Table.join.
* Table.left_outer_join is now Table.join.

0.9.0

--------------------------

* Add many missing unit tests. Up to 99% coverage.
* Add property accessors for TableSet.key_name and TableSet.key_type. (247)
* Table.rows and Table.columns are now behind properties. (247)
* Column.data_type is now a property. (247)
* Table[Set].get_column_types() is now the Table[Set].column_types property. (247)
* Table[Set].get_column_names() is now the Table[Set].column_names property. (247)
* Table.pretty_print now displays consistent decimal places for each Number column.
* Discrete data types (Number, Date etc) are now right-aligned in Table.pretty_print.
* Implement aggregation result caching. (245)
* Reimplement Percentiles, Quartiles, etc as aggregations.
* UnsupportedAggregationError is now used to disable TableSet aggregations.
* Replaced several exceptions with more general DataTypeError.
* Column type information can now be accessed as Column.data_type.
* Eliminated Column subclasses. Restructured around DataType classes.
* Table.merge implemented. (9)
* Cookbook: guess column types. (230)
* Fix issue where all group keys were being cast to text. (235)
* Table.group_by will now default key_type to the type of the grouping column. (234)
* Add Matt Riggott to AUTHORS. (231)
* Support file-like objects in Table.to_csv and Table.from_csv. (229)
* Fix bug when applying multiple computations with Table.compute.

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.