prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Displaying full integers instead of scientific notiation when printing out Vaex HDF5 data
  Hi,
  Can you help me:
  my code:
  `myfile = vaex.open('myfile.hdf5')`
  `myfile['customer_id']`
  
  output:
  `Length: 4,259,376 dtype: int64 (column)`
  `0   9.4618e+08`
  ` 1  9.43324e+08`
  `  2  9.43325e+08`
  `  3  9.43333e+08`
  ` 4  9.43333e+08`
     ...
  
  How can get output with full integer instead of scientific notation? Thank you.
  
  
  </issue>
  <code>
  [start of packages/vaex-core/vaex/formatting.py]
  1 import numpy as np
  2 import numbers
  3 import six
  4 import datetime
  5 import pyarrow as pa
  6 
  7 
  8 MAX_LENGTH = 50
  9 
  10 
  11 def _format_value(value):
  12     if isinstance(value, six.string_types):
  13         value = str(value)
  14     elif isinstance(value, pa.lib.Scalar):
  15         value = value.as_py()
  16         if value is None:
  17             value = '--'
  18         else:
  19             value = repr(value)
  20     elif isinstance(value, bytes):
  21         value = repr(value)
  22     elif isinstance(value, np.ma.core.MaskedConstant):
  23         value = str(value)
  24     if isinstance(value, np.datetime64):
  25         if np.isnat(value):
  26             value = 'NaT'
  27         else:
  28             value = ' '.join(str(value).split('T'))
  29     if isinstance(value, np.timedelta64):
  30         if np.isnat(value):
  31             value = 'NaT'
  32         else:
  33             tmp = datetime.timedelta(seconds=value / np.timedelta64(1, 's'))
  34             ms = tmp.microseconds
  35             s = np.mod(tmp.seconds, 60)
  36             m = np.mod(tmp.seconds//60, 60)
  37             h = tmp.seconds // 3600
  38             d = tmp.days
  39             if ms:
  40                 value = str('%i days %+02i:%02i:%02i.%i' % (d,h,m,s,ms))
  41             else:
  42                 value = str('%i days %+02i:%02i:%02i' % (d,h,m,s))
  43     elif not isinstance(value, numbers.Number):
  44         value = str(value)
  45     if isinstance(value, float):
  46         value = repr(value)
  47     if isinstance(value, (str, bytes)):
  48         if len(value) > MAX_LENGTH:
  49             value = repr(value[:MAX_LENGTH-3])[:-1] + '...'
  50     return value
  51
  [end of packages/vaex-core/vaex/formatting.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/packages/vaex-core/vaex/formatting.py b/packages/vaex-core/vaex/formatting.py
  --- a/packages/vaex-core/vaex/formatting.py
  +++ b/packages/vaex-core/vaex/formatting.py
  @@ -8,25 +8,32 @@
   MAX_LENGTH = 50
   
   
  +def _trim_string(value):
  +    if len(value) > MAX_LENGTH:
  +        value = repr(value[:MAX_LENGTH-3])[:-1] + '...'
  +    return value
  +
   def _format_value(value):
  -    if isinstance(value, six.string_types):
  -        value = str(value)
  -    elif isinstance(value, pa.lib.Scalar):
  +    # print("value = ", value, type(value), isinstance(value, numbers.Number))
  +    if isinstance(value, pa.lib.Scalar):
           value = value.as_py()
           if value is None:
  -            value = '--'
  +            return '--'
           else:
  -            value = repr(value)
  +            return _trim_string(str(value))
  +    if isinstance(value, str):
  +        return _trim_string(str(value))
       elif isinstance(value, bytes):
  -        value = repr(value)
  +        value = _trim_string(repr(value))
       elif isinstance(value, np.ma.core.MaskedConstant):
  -        value = str(value)
  -    if isinstance(value, np.datetime64):
  +        return str(value)
  +    elif isinstance(value, np.datetime64):
           if np.isnat(value):
               value = 'NaT'
           else:
               value = ' '.join(str(value).split('T'))
  -    if isinstance(value, np.timedelta64):
  +        return value
  +    elif isinstance(value, np.timedelta64):
           if np.isnat(value):
               value = 'NaT'
           else:
  @@ -40,11 +47,10 @@
                   value = str('%i days %+02i:%02i:%02i.%i' % (d,h,m,s,ms))
               else:
                   value = str('%i days %+02i:%02i:%02i' % (d,h,m,s))
  -    elif not isinstance(value, numbers.Number):
  +        return value
  +    elif isinstance(value, numbers.Number):
           value = str(value)
  -    if isinstance(value, float):
  +    else:
           value = repr(value)
  -    if isinstance(value, (str, bytes)):
  -        if len(value) > MAX_LENGTH:
  -            value = repr(value[:MAX_LENGTH-3])[:-1] + '...'
  +        value = _trim_string(value)
       return value
  
verification_info: {"golden_diff": "diff --git a/packages/vaex-core/vaex/formatting.py b/packages/vaex-core/vaex/formatting.py\n--- a/packages/vaex-core/vaex/formatting.py\n+++ b/packages/vaex-core/vaex/formatting.py\n@@ -8,25 +8,32 @@\n MAX_LENGTH = 50\n \n \n+def _trim_string(value):\n+    if len(value) > MAX_LENGTH:\n+        value = repr(value[:MAX_LENGTH-3])[:-1] + '...'\n+    return value\n+\n def _format_value(value):\n-    if isinstance(value, six.string_types):\n-        value = str(value)\n-    elif isinstance(value, pa.lib.Scalar):\n+    # print(\"value = \", value, type(value), isinstance(value, numbers.Number))\n+    if isinstance(value, pa.lib.Scalar):\n         value = value.as_py()\n         if value is None:\n-            value = '--'\n+            return '--'\n         else:\n-            value = repr(value)\n+            return _trim_string(str(value))\n+    if isinstance(value, str):\n+        return _trim_string(str(value))\n     elif isinstance(value, bytes):\n-        value = repr(value)\n+        value = _trim_string(repr(value))\n     elif isinstance(value, np.ma.core.MaskedConstant):\n-        value = str(value)\n-    if isinstance(value, np.datetime64):\n+        return str(value)\n+    elif isinstance(value, np.datetime64):\n         if np.isnat(value):\n             value = 'NaT'\n         else:\n             value = ' '.join(str(value).split('T'))\n-    if isinstance(value, np.timedelta64):\n+        return value\n+    elif isinstance(value, np.timedelta64):\n         if np.isnat(value):\n             value = 'NaT'\n         else:\n@@ -40,11 +47,10 @@\n                 value = str('%i days %+02i:%02i:%02i.%i' % (d,h,m,s,ms))\n             else:\n                 value = str('%i days %+02i:%02i:%02i' % (d,h,m,s))\n-    elif not isinstance(value, numbers.Number):\n+        return value\n+    elif isinstance(value, numbers.Number):\n         value = str(value)\n-    if isinstance(value, float):\n+    else:\n         value = repr(value)\n-    if isinstance(value, (str, bytes)):\n-        if len(value) > MAX_LENGTH:\n-            value = repr(value[:MAX_LENGTH-3])[:-1] + '...'\n+        value = _trim_string(value)\n     return value\n", "issue": "Displaying full integers instead of scientific notiation when printing out Vaex HDF5 data\nHi,\r\nCan you help me:\r\nmy code:\r\n`myfile = vaex.open('myfile.hdf5')`\r\n`myfile['customer_id']`\r\n\r\noutput:\r\n`Length: 4,259,376 dtype: int64 (column)`\r\n`0   9.4618e+08`\r\n` 1  9.43324e+08`\r\n`  2  9.43325e+08`\r\n`  3  9.43333e+08`\r\n` 4  9.43333e+08`\r\n   ...\r\n\r\nHow can get output with full integer instead of scientific notation? Thank you.\r\n\n", "before_files": [{"content": "import numpy as np\nimport numbers\nimport six\nimport datetime\nimport pyarrow as pa\n\n\nMAX_LENGTH = 50\n\n\ndef _format_value(value):\n    if isinstance(value, six.string_types):\n        value = str(value)\n    elif isinstance(value, pa.lib.Scalar):\n        value = value.as_py()\n        if value is None:\n            value = '--'\n        else:\n            value = repr(value)\n    elif isinstance(value, bytes):\n        value = repr(value)\n    elif isinstance(value, np.ma.core.MaskedConstant):\n        value = str(value)\n    if isinstance(value, np.datetime64):\n        if np.isnat(value):\n            value = 'NaT'\n        else:\n            value = ' '.join(str(value).split('T'))\n    if isinstance(value, np.timedelta64):\n        if np.isnat(value):\n            value = 'NaT'\n        else:\n            tmp = datetime.timedelta(seconds=value / np.timedelta64(1, 's'))\n            ms = tmp.microseconds\n            s = np.mod(tmp.seconds, 60)\n            m = np.mod(tmp.seconds//60, 60)\n            h = tmp.seconds // 3600\n            d = tmp.days\n            if ms:\n                value = str('%i days %+02i:%02i:%02i.%i' % (d,h,m,s,ms))\n            else:\n                value = str('%i days %+02i:%02i:%02i' % (d,h,m,s))\n    elif not isinstance(value, numbers.Number):\n        value = str(value)\n    if isinstance(value, float):\n        value = repr(value)\n    if isinstance(value, (str, bytes)):\n        if len(value) > MAX_LENGTH:\n            value = repr(value[:MAX_LENGTH-3])[:-1] + '...'\n    return value\n", "path": "packages/vaex-core/vaex/formatting.py"}]}