Hi just upgraded to 0.2.8 now and then I starting to get this error
TypeError Traceback (most recent call last)
<ipython-input-4-7fe66a702bc1> in <module>
1 from pandasgui import show
----> 2 show(df)
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\gui.py in show(settings, *args, **kwargs)
362 kwargs = {**kwargs, **dataframes}
363
--> 364 pandas_gui = PandasGui(settings=settings, **kwargs)
365 pandas_gui.caller_stack = inspect.currentframe().f_back
366
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\gui.py in __init__(self, settings, **kwargs)
74 # Adds DataFrames listed in kwargs to data store.
75 for df_name, df in kwargs.items():
---> 76 self.store.add_dataframe(df, df_name)
77
78 # Default to first item
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\store.py in add_dataframe(self, pgdf, name)
413 pgdf.store = self
414
--> 415 pgdf.df = clean_dataframe(pgdf.df, name)
416
417 # Add it to store and create widgets
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\utility.py in clean_dataframe(df, name)
264 converted_names = []
265 dtypes_old = df.dtypes
--> 266 df = parse_dates(df)
267 dtypes_new = df.dtypes
268 for col_name in [df.columns[ix] for ix in range(len(dtypes_new)) if dtypes_old[ix] != dtypes_new[ix]]:
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\utility.py in parse_dates(df)
229 def parse_dates(df: Union[pd.DataFrame, pd.Series]):
230 if type(df) == pd.DataFrame:
--> 231 return df.apply(
232 lambda col: pd.to_datetime(col, errors='ignore') if col.dtypes == object else col,
233 axis=0)
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\frame.py in apply(self, func, axis, raw, result_type, args, **kwds)
7763 kwds=kwds,
7764 )
-> 7765 return op.get_result()
7766
7767 def applymap(self, func, na_action: Optional[str] = None) -> DataFrame:
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\apply.py in get_result(self)
183 return self.apply_raw()
184
--> 185 return self.apply_standard()
186
187 def apply_empty_result(self):
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\apply.py in apply_standard(self)
274
275 def apply_standard(self):
--> 276 results, res_index = self.apply_series_generator()
277
278 # wrap results
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\apply.py in apply_series_generator(self)
288 for i, v in enumerate(series_gen):
289 # ignore SettingWithCopy here in case the user mutates
--> 290 results[i] = self.f(v)
291 if isinstance(results[i], ABCSeries):
292 # If we have a view on v, we need to make a copy because
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandasgui\utility.py in <lambda>(col)
230 if type(df) == pd.DataFrame:
231 return df.apply(
--> 232 lambda col: pd.to_datetime(col, errors='ignore') if col.dtypes == object else col,
233 axis=0)
234 elif type(df) == pd.Series:
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\tools\datetimes.py in to_datetime(arg, errors, dayfirst, yearfirst, utc, format, exact, unit, infer_datetime_format, origin, cache)
799 result = result.tz_localize(tz)
800 elif isinstance(arg, ABCSeries):
--> 801 cache_array = _maybe_cache(arg, format, cache, convert_listlike)
802 if not cache_array.empty:
803 result = arg.map(cache_array)
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\tools\datetimes.py in _maybe_cache(arg, format, cache, convert_listlike)
171 if cache:
172 # Perform a quicker unique check
--> 173 if not should_cache(arg):
174 return cache_array
175
~\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\core\tools\datetimes.py in should_cache(arg, unique_share, check_count)
135 assert 0 < unique_share < 1, "unique_share must be in next bounds: (0; 1)"
136
--> 137 unique_elements = set(islice(arg, check_count))
138 if len(unique_elements) > check_count * unique_share:
139 do_caching = False
TypeError: unhashable type: 'list'
Environment
OS: (eg. Windows 10)
Python: (eg. 3.9)
bug