Commit deaf9c4 1 parent c49f090 commit deaf9c4 Copy full SHA for deaf9c4
File tree 5 files changed +13
-8
lines changed
5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change
1
+ 1.13.0 - Jan 29, 2025
2
+ ---------------------
3
+
4
+ - fix: :meth: `.Table.order_by ` sorts None as equal to None.
5
+
1
6
1.12.0 - July 29, 2024
2
7
----------------------
3
8
Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ class NullOrder:
46
46
def __lt__ (self , other ):
47
47
return False
48
48
49
- def __gt__ (self , other ):
50
- if other is None :
51
- return False
49
+ def __eq__ (self , other ):
50
+ return isinstance (other , NullOrder )
52
51
53
- return True
52
+ def __gt__ (self , other ):
53
+ return not isinstance (other , NullOrder )
54
54
55
55
56
56
class Quantiles (Sequence ):
Original file line number Diff line number Diff line change 12
12
13
13
project = 'agate'
14
14
copyright = '2017, Christopher Groskopf'
15
- version = '1.12 .0'
15
+ version = '1.13 .0'
16
16
release = version
17
17
18
18
# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = 'agate' ,
8
- version = '1.12 .0' ,
8
+ version = '1.13 .0' ,
9
9
description = 'A data analysis library that is optimized for humans instead of machines.' ,
10
10
long_description = long_description ,
11
11
long_description_content_type = 'text/x-rst' ,
Original file line number Diff line number Diff line change @@ -131,8 +131,8 @@ def test_order_by_nulls(self):
131
131
self .assertRows (new_table , [
132
132
rows [2 ],
133
133
rows [0 ],
134
- rows [1 ],
135
- rows [3 ]
134
+ rows [3 ],
135
+ rows [1 ]
136
136
])
137
137
138
138
def test_order_by_with_row_names (self ):
You can’t perform that action at this time.
0 commit comments