mstz commited on
Commit
d591adc
1 Parent(s): 6b2568b

Upload tic_tac_toe.py

Browse files
Files changed (1) hide show
  1. tic_tac_toe.py +1 -1
tic_tac_toe.py CHANGED
@@ -86,7 +86,7 @@ class TicTacToe(datasets.GeneratorBasedBuilder):
86
  def _generate_examples(self, filepath: str):
87
  data = pandas.read_csv(filepath, header=None)
88
  data.columns = _BASE_FEATURE_NAMES
89
- data.x_wins.applymap(lambda x: 1 if x == "positive" else 0)
90
 
91
  for row_id, row in data.iterrows():
92
  data_row = dict(row)
 
86
  def _generate_examples(self, filepath: str):
87
  data = pandas.read_csv(filepath, header=None)
88
  data.columns = _BASE_FEATURE_NAMES
89
+ data[["x_wins"]].applymap(lambda x: 1 if x == "positive" else 0)
90
 
91
  for row_id, row in data.iterrows():
92
  data_row = dict(row)