Merge remote-tracking branch 'origin/master'
authorLiana.Bakradze <liana.bakradze@jetbrains.com>
Thu, 6 Oct 2016 15:24:19 +0000 (18:24 +0300)
committerLiana.Bakradze <liana.bakradze@jetbrains.com>
Thu, 6 Oct 2016 15:24:19 +0000 (18:24 +0300)
python/helpers/pydev/_pydevd_bundle/pydevd_vars.py

index 448af57331fb02f3c9e2e3de922b1bdbf4d79dea..7db36f504fd0b452897a73c3b297f6f9c4e43942 100644 (file)
@@ -570,9 +570,9 @@ def dataframe_to_xml(df, name, roffset, coffset, rows, cols, format):
     # need to precompute column bounds here before slicing!
     col_bounds = [None] * cols
     for col in range(cols):
-        dtype = df.dtypes.iloc[col].kind
+        dtype = df.dtypes.iloc[coffset + col].kind
         if dtype in "biufc":
-            cvalues = df.iloc[:, col]
+            cvalues = df.iloc[:, coffset + col]
             bounds = (cvalues.min(), cvalues.max())
         else:
             bounds = (0, 0)