mstz commited on
Commit
a29c826
1 Parent(s): 6870235

Upload page_blocks.py

Browse files
Files changed (1) hide show
  1. page_blocks.py +3 -0
page_blocks.py CHANGED
@@ -111,6 +111,9 @@ class PageBlocks(datasets.GeneratorBasedBuilder):
111
  encoding_function = partial(self.encode, feature)
112
  print("\tencoding...\n\n\n\n")
113
  data.loc[:, feature] = data[feature].apply(encoding_function)
 
 
 
114
  print("encoded\n\n\n\n")
115
  print(list(features_types_per_config[self.config.name].keys()))
116
  print(data.head())
 
111
  encoding_function = partial(self.encode, feature)
112
  print("\tencoding...\n\n\n\n")
113
  data.loc[:, feature] = data[feature].apply(encoding_function)
114
+
115
+ data = data.reset_index()
116
+ data.drop("index", axis="columns", inplace=True)
117
  print("encoded\n\n\n\n")
118
  print(list(features_types_per_config[self.config.name].keys()))
119
  print(data.head())