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.
- {ygo-1.0.6b0/ygo.egg-info → ygo-1.0.7}/PKG-INFO +1 -1
- {ygo-1.0.6b0 → ygo-1.0.7}/pyproject.toml +1 -1
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/qdf.py +14 -0
- {ygo-1.0.6b0 → ygo-1.0.7/ygo.egg-info}/PKG-INFO +1 -1
- {ygo-1.0.6b0 → ygo-1.0.7}/LICENSE +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/README.md +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/__init__.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/errors.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/expr.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/__init__.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/base_udf.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/cs_udf.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/d_udf.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/ind_udf.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/qdf/udf/ts_udf.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/setup.cfg +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ycat/__init__.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ycat/client.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ycat/dtype.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ycat/parse.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ycat/yck.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo/__init__.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo/exceptions.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo/ygo.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/SOURCES.txt +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/dependency_links.txt +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/requires.txt +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ygo.egg-info/top_level.txt +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ylog/__init__.py +0 -0
- {ygo-1.0.6b0 → ygo-1.0.7}/ylog/core.py +0 -0
|
@@ -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
|
+
|
|
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
|
|
File without changes
|