CODAIT / text-extensions-for-pandas

Natural language processing support for Pandas dataframes.
Apache License 2.0
217 stars 34 forks source link

Error on DataFrame display of TensorArray with non-numeric values for Pandas 1.0.x #135

Closed BryanCutler closed 3 years ago

BryanCutler commented 4 years ago

After the fix in #133 the GenericArrayFormatter which pandas uses to format strings to display a DataFrame can not handle a TensorArray with dims > 1 and raises an error when printing for Pandas versions 1.0.x. This has been fixed in Pandas 1.1.x, but a suitable workaround for Pandas 1.0.x has not been found. Instead of using a TensorArray, users should make a column lists of objects, if required to work with this version of Pandas.

frreiss commented 3 years ago

@BryanCutler is this problem fixed/worked-around now?

BryanCutler commented 3 years ago

Yes, the fix from #172 would apply to this as well