@@ -111,7 +111,7 @@ def get_summary(self, as_json=False) -> Union[dict, str]:
111111 "Value columns" : value_cols ,
112112 "Skip columns" : self .skip_cols ,
113113 "Files" : self .files ,
114- "Limit on categorical values " : str (self .categorical_limit ),
114+ "Categorical limit " : str (self .categorical_limit ),
115115 }
116116 if as_json :
117117 return json .dumps (summary , indent = 4 )
@@ -180,7 +180,7 @@ def _update_categorical(self, tab_name, values, cat_counts):
180180 Parameters:
181181 tab_name (str): Name of a key indicating a categorical column.
182182 values (dict): A dictionary whose keys are unique categorical values.
183- cat_counts(list): A list with two elements: total count of values and number of entries.
183+ cat_counts (list): A list with two elements: total count of values and number of entries.
184184
185185 """
186186 if tab_name not in self .categorical_info :
@@ -311,6 +311,7 @@ def extract_summary(summary_info) -> "TabularSummary":
311311 value_cols = summary_info .get ("Value columns" , {}).keys (),
312312 skip_cols = summary_info .get ("Skip columns" , []),
313313 name = summary_info .get ("Name" , "" ),
314+ categorical_limit = summary_info .get ("Categorical limit" , None ),
314315 )
315316 new_tab .value_info = summary_info .get ("Value columns" , {})
316317 new_tab .total_files = summary_info .get ("Total files" , 0 )
0 commit comments