ygo 1.0.6b0__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ygo might be problematic. Click here for more details.

Files changed (30) hide show
  1. {ygo-1.0.6b0/ygo.egg-info → ygo-1.0.7}/PKG-INFO +1 -1
  2. {ygo-1.0.6b0 → ygo-1.0.7}/pyproject.toml +1 -1
  3. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/qdf.py +14 -0
  4. {ygo-1.0.6b0 → ygo-1.0.7/ygo.egg-info}/PKG-INFO +1 -1
  5. {ygo-1.0.6b0 → ygo-1.0.7}/LICENSE +0 -0
  6. {ygo-1.0.6b0 → ygo-1.0.7}/README.md +0 -0
  7. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/__init__.py +0 -0
  8. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/errors.py +0 -0
  9. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/expr.py +0 -0
  10. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/__init__.py +0 -0
  11. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/base_udf.py +0 -0
  12. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/cs_udf.py +0 -0
  13. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/d_udf.py +0 -0
  14. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/ind_udf.py +0 -0
  15. {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/ts_udf.py +0 -0
  16. {ygo-1.0.6b0 → ygo-1.0.7}/setup.cfg +0 -0
  17. {ygo-1.0.6b0 → ygo-1.0.7}/ycat/__init__.py +0 -0
  18. {ygo-1.0.6b0 → ygo-1.0.7}/ycat/client.py +0 -0
  19. {ygo-1.0.6b0 → ygo-1.0.7}/ycat/dtype.py +0 -0
  20. {ygo-1.0.6b0 → ygo-1.0.7}/ycat/parse.py +0 -0
  21. {ygo-1.0.6b0 → ygo-1.0.7}/ycat/yck.py +0 -0
  22. {ygo-1.0.6b0 → ygo-1.0.7}/ygo/__init__.py +0 -0
  23. {ygo-1.0.6b0 → ygo-1.0.7}/ygo/exceptions.py +0 -0
  24. {ygo-1.0.6b0 → ygo-1.0.7}/ygo/ygo.py +0 -0
  25. {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/SOURCES.txt +0 -0
  26. {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/dependency_links.txt +0 -0
  27. {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/requires.txt +0 -0
  28. {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/top_level.txt +0 -0
  29. {ygo-1.0.6b0 → ygo-1.0.7}/ylog/__init__.py +0 -0
  30. {ygo-1.0.6b0 → ygo-1.0.7}/ylog/core.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygo
3
- Version: 1.0.6b0
3
+ Version: 1.0.7
4
4
  Project-URL: homepage, https://github.com/link-yundi/ygo
5
5
  Project-URL: repository, https://github.com/link-yundi/ygo
6
6
  Requires-Python: >=3.8
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ygo"
7
- version = "1.0.6beta"
7
+ version = "1.0.7"
8
8
  description = ""
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -157,10 +157,24 @@ class QDF:
157
157
  ylog.warning(f"QDF.sql 失败:{len(self.failed)}/{len(exprs)}: \n {self.failed}")
158
158
  for expr in exprs_to_add:
159
159
  data = data.with_columns(expr).fill_nan(None)
160
+ new_expr_cache = dict()
160
161
  try:
161
162
  self.data = data.collect()
162
163
  final_df = self.data.select(*self.index, *exprs_to_add)
164
+ current_cols = set(self.data.columns)
165
+ # 缓存整理:只保留当前表达式的缓存
163
166
  self._expr_cache.update(self._cur_expr_cache)
167
+ for k, v in self._expr_cache.items():
168
+ if v in current_cols:
169
+ new_expr_cache[k] = v
170
+ self._expr_cache = new_expr_cache
164
171
  return final_df
165
172
  except Exception as e:
173
+ current_cols = set(self.data.columns)
174
+ # 缓存整理:只保留当前表达式的缓存
175
+ for k, v in self._expr_cache.items():
176
+ if v in current_cols:
177
+ new_expr_cache[k] = v
178
+ self._expr_cache = new_expr_cache
166
179
  raise PolarsError(message=f"LazyFrame.collect() 阶段出错\n{e}") from e
180
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ygo
3
- Version: 1.0.6b0
3
+ Version: 1.0.7
4
4
  Project-URL: homepage, https://github.com/link-yundi/ygo
5
5
  Project-URL: repository, https://github.com/link-yundi/ygo
6
6
  Requires-Python: >=3.8
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes