numerai-tools 0.5.0.dev7__tar.gz → 0.5.0.dev9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: numerai-tools
3
- Version: 0.5.0.dev7
3
+ Version: 0.5.0.dev9
4
4
  Summary: A collection of open-source tools to help interact with Numerai, model data, and automate submissions.
5
5
  License: MIT
6
6
  Author: Numerai Engineering
@@ -78,7 +78,11 @@ def validate_headers_signals(
78
78
  if col in SIGNALS_ALLOWED_DATE_COLS:
79
79
  date_col_name = col
80
80
  date_col = submission[date_col_name].copy()
81
- submission = submission.drop(columns=date_col_name, errors="ignore")
81
+ submission.drop(
82
+ columns=date_col_name,
83
+ errors="ignore",
84
+ inplace=True,
85
+ )
82
86
  break
83
87
  if assert_date_col:
84
88
  assert (
@@ -89,7 +93,7 @@ def validate_headers_signals(
89
93
  SIGNALS_ALLOWED_ID_COLS,
90
94
  SIGNALS_ALLOWED_PRED_COLS,
91
95
  )
92
- if date_col is not None:
96
+ if assert_date_col:
93
97
  submission[date_col_name] = date_col
94
98
  return ticker_col, signal_col, date_col_name
95
99
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "numerai-tools"
3
- version = "0.5.0.dev7"
3
+ version = "0.5.0.dev9"
4
4
  description = "A collection of open-source tools to help interact with Numerai, model data, and automate submissions."
5
5
  authors = [
6
6
  {name = "Numerai Engineering",email = "engineering@numer.ai"}