Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2832

[Python] Pretty-print schema metadata in Schema.__repr__

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Python
    • Labels:

      Description

      The default formatting is a bit unreadable

      a: string
      b: double
      c: bool
      metadata
      --------
      {b'pandas': b'{"index_columns": [], "column_indexes": [], "columns": [{"name":'
                  b' "a", "field_name": "a", "pandas_type": "unicode", "numpy_type":'
                  b' "object", "metadata": null}, {"name": "b", "field_name": "b", "'
                  b'pandas_type": "float64", "numpy_type": "float64", "metadata": nu'
                  b'll}, {"name": "c", "field_name": "c", "pandas_type": "bool", "nu'
                  b'mpy_type": "object", "metadata": null}], "pandas_version": "0.23'
                  b'.2"}'}
      

        Attachments

          Activity

            People

            • Assignee:
              wesm Wes McKinney
              Reporter:
              wesm Wes McKinney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: