Skip to content

Commit

Permalink
[ENH] Implement sort_naturally (pyjanitor-devs#628)
Browse files Browse the repository at this point in the history
* Implemented first version of sort_naturally

* Added test for sort_naturally

* Added example for sort_naturally

* Updated changelog

* Add natsort to environment spec file

* Line length fix

* code formatting

* Changed implementation of natsort.

- Suggested by @zbarry.

* code formatting fixes

* test that the data are uncorrupted

* add explanation of natural sorting to docstring

* removed unnecessary source files

* Added sort_naturally to list of functions in docs

* Added extra test suggested by @zbarry

* Added docs for sort_naturally

* backticks on natsort for formatting
  • Loading branch information
ericmjl committed Feb 2, 2020
1 parent e6446ef commit d23e401
Show file tree
Hide file tree
Showing 56 changed files with 519 additions and 329 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
new version (on deck)
=====================
-[DOC]: Added an example for groupby_agg in general functions @samukweku
- [DOC]: Added an example for groupby_agg in general functions @samukweku
- [ENH]: Contributed ``sort_naturally()`` function. @ericmjl

v0.20.0
=======
Expand Down
6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.add_column.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.add_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.bin_numeric.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.change_type.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.clean_names.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.coalesce.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.collapse_levels.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.concatenate_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.convert_excel_date.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.convert_matlab_date.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.convert_unix_date.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.currency_column_to_numeric.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.deconcatenate_column.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.drop_duplicate_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.dropnotnull.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.encode_categorical.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.expand_column.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.fill_empty.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.filter_column_isin.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.filter_date.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.filter_on.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.filter_string.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.find_replace.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.get_dupes.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.get_features_targets.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.groupby_agg.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.impute.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.label_encode.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.limit_column_characters.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.min_max_scale.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.remove_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.remove_empty.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.rename_column.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.reorder_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.round_to_fraction.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.row_to_names.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.select_columns.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.shuffle.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.take_first.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.then.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.to_datetime.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.transform_column.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.transform_columns.md

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions docs/janitor.functions/janitor.update_where.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/reference/general_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ Other

then
shuffle
reset_index_inplace
count_cumulative_unique
sort_naturally
6 changes: 6 additions & 0 deletions docs/reference/janitor.functions/janitor.sort_naturally.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
janitor.sort\_naturally
=====================

.. currentmodule:: janitor

.. autofunction:: sort_naturally
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- make
- missingno
- mypy
- natsort
- nbsphinx
- nox
- numpy>=1.16
Expand Down
Loading

0 comments on commit d23e401

Please sign in to comment.