Skip to content

Commit d138589

Browse files
committed
rebuld and retest
1 parent 71137e7 commit d138589

35 files changed

+4951
-5515
lines changed

build/lib/data_algebra/data_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def populate_impl_map(data_model):
140140
"is_bad": data_model.bad_column_positions,
141141
"is_in": _type_safe_is_in,
142142
"concat": lambda a, b: numpy.char.add(
143-
numpy.asarray(a, dtype=numpy.str), numpy.asarray(b, dtype=numpy.str)
143+
numpy.asarray(a, dtype=str), numpy.asarray(b, dtype=str)
144144
),
145145
"coalesce": lambda a, b: _coalesce(a, b), # assuming Pandas series
146146
"connected_components": lambda a, b: data_algebra.connected_components.connected_components(

build/lib/data_algebra/pandas_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def promote_scalar(v):
281281
missing_group_cols = set(op.group_by) - set(res.columns)
282282
assert len(missing_group_cols) <= 0
283283
if "_data_table_temp_col" in res.columns:
284-
res = res.drop("_data_table_temp_col", 1)
284+
res = res.drop("_data_table_temp_col", axis=1, inplace=False)
285285
# double check shape is what we expect
286286
if not data_algebra.util.table_is_keyed_by_columns(res, op.group_by):
287287
raise ValueError("result wasn't keyed by group_by columns")
@@ -402,7 +402,7 @@ def natural_join_step(self, op, *, data_map, narrow):
402402
if c not in op.by:
403403
is_null = res[c].isnull()
404404
res.loc[is_null, c] = res.loc[is_null, c + "_tmp_right_col"]
405-
res = res.drop(c + "_tmp_right_col", axis=1)
405+
res = res.drop(c + "_tmp_right_col", axis=1, inplace=False)
406406
res = res.reset_index(drop=True)
407407
return res
408408

coverage.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
============================= test session starts ==============================
2-
platform darwin -- Python 3.9.4, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
2+
platform darwin -- Python 3.8.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
33
rootdir: /Users/johnmount/Documents/work/data_algebra
4-
plugins: anyio-2.2.0, cov-2.11.1
4+
plugins: cov-2.12.1, anyio-2.2.0
55
collected 192 items
66

77
tests/test_OrderedSet.py . [ 0%]
@@ -81,13 +81,13 @@ tests/test_window2.py ... [ 96%]
8181
tests/test_window_fns.py ..... [ 98%]
8282
tests/test_with.py .. [100%]
8383

84-
---------- coverage: platform darwin, python 3.9.4-final-0 -----------
84+
---------- coverage: platform darwin, python 3.8.10-final-0 ----------
8585
Name Stmts Miss Cover
8686
----------------------------------------------------------
87-
data_algebra/BigQuery.py 105 68 35%
88-
data_algebra/MySQL.py 28 10 64%
87+
data_algebra/BigQuery.py 105 67 36%
88+
data_algebra/MySQL.py 28 9 68%
8989
data_algebra/OrderedSet.py 53 7 87%
90-
data_algebra/PostgreSQL.py 18 7 61%
90+
data_algebra/PostgreSQL.py 18 6 67%
9191
data_algebra/SQLite.py 66 8 88%
9292
data_algebra/SparkSQL.py 68 43 37%
9393
data_algebra/__init__.py 6 0 100%
@@ -99,7 +99,7 @@ data_algebra/data_ops.py 1125 193 83%
9999
data_algebra/data_ops_types.py 85 38 55%
100100
data_algebra/data_ops_utils.py 51 7 86%
101101
data_algebra/db_model.py 868 97 89%
102-
data_algebra/diagram.py 56 44 21%
102+
data_algebra/diagram.py 56 43 23%
103103
data_algebra/eval_model.py 16 1 94%
104104
data_algebra/expr_parse.py 32 0 100%
105105
data_algebra/expr_rep.py 562 102 82%
@@ -113,7 +113,7 @@ data_algebra/python3_lark.py 1 0 100%
113113
data_algebra/test_util.py 175 25 86%
114114
data_algebra/util.py 78 8 90%
115115
----------------------------------------------------------
116-
TOTAL 4718 879 81%
116+
TOTAL 4718 875 81%
117117

118118

119-
============================= 192 passed in 16.32s =============================
119+
============================= 192 passed in 14.09s =============================
0 Bytes
Binary file not shown.

dist/data_algebra-0.7.6.tar.gz

-7 Bytes
Binary file not shown.

docs/data_algebra.html

Lines changed: 169 additions & 169 deletions
Large diffs are not rendered by default.

docs/data_algebra/BigQuery.html

Lines changed: 170 additions & 181 deletions
Large diffs are not rendered by default.

docs/data_algebra/MySQL.html

Lines changed: 170 additions & 181 deletions
Large diffs are not rendered by default.

docs/data_algebra/OrderedSet.html

Lines changed: 169 additions & 169 deletions
Large diffs are not rendered by default.

docs/data_algebra/PostgreSQL.html

Lines changed: 170 additions & 181 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)