mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-42705 DataView crashes with pandas 1.0.3
Update exception type in column type detection Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com> GitOrigin-RevId: 24fa0bfcd7f0962dd2e5c969957a3aecae7a956e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cb532cd236
commit
c6e824e253
@@ -510,7 +510,7 @@ def dataframe_to_thrift_struct(df, name, roffset, coffset, rows, cols, format):
|
||||
except AttributeError:
|
||||
try:
|
||||
kind = df.dtypes[0].kind
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
kind = "O"
|
||||
format = array_default_format(kind)
|
||||
else:
|
||||
|
||||
@@ -642,7 +642,7 @@ def dataframe_to_xml(df, name, roffset, coffset, rows, cols, format):
|
||||
except AttributeError:
|
||||
try:
|
||||
kind = df.dtypes[0].kind
|
||||
except IndexError:
|
||||
except (IndexError, KeyError):
|
||||
kind = 'O'
|
||||
format = array_default_format(kind)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user