mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[pycharm] PY-78813 Tables(Jupyter, DataView): fix tests on server
GitOrigin-RevId: 75eb57e7cd475575e449dcc2f8454e4b3d1c975e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
affc19917c
commit
765286c50f
@@ -192,8 +192,8 @@ class _NpTable:
|
||||
if self.array.dtype.names is not None:
|
||||
np_array_without_nones = np.copy(self.array)
|
||||
for field in self.array.dtype.names:
|
||||
np_array_without_nones[field] = np.where(self.array[field] == None, np.nan, self.array[field])
|
||||
np_array_without_nones = np.column_stack([np_array_without_nones[field] for field in self.array.dtype.names])
|
||||
np_array_without_nones[str(field)] = np.where(self.array[str(field)] == None, np.nan, self.array[str(field)])
|
||||
np_array_without_nones = np.column_stack([np_array_without_nones[str(field)] for field in self.array.dtype.names])
|
||||
else:
|
||||
np_array_without_nones = np.where(self.array == None, np.nan, self.array)
|
||||
if float_format is None or float_format == 'null':
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>2</th>
|
||||
td>3</td>
|
||||
<td>3</td>
|
||||
<td>Charlie</td>
|
||||
<td>22</td>
|
||||
<td>67</td>
|
||||
|
||||
@@ -25,6 +25,8 @@ def setup_tables_modules():
|
||||
if sys.version_info < (3, 0) and 'polars' in file:
|
||||
# we don't need to test polars for python 2.7
|
||||
continue
|
||||
if 'image' in file: # we don't have tests for view as image at the moment
|
||||
continue
|
||||
tables_files.append(file)
|
||||
module_name = '_pydevd_bundle.tables.' + file.replace('.py', '')
|
||||
tables_modules.append(importlib.import_module(module_name))
|
||||
|
||||
Reference in New Issue
Block a user