コード例 #1
0
def test_string_format():
    arr = pa.array([u'', None, u'foo'])
    result = fmt.array_format(arr)
    expected = """\
[
  "",
  null,
  "foo"
]"""
    assert result == expected
コード例 #2
0
ファイル: test_array.py プロジェクト: Intellifora/arrow
    def test_string_format(self):
        arr = pyarrow.from_pylist(['', None, 'foo'])
        result = fmt.array_format(arr)
        expected = """\
[
  '',
  NA,
  'foo'
]"""
        assert result == expected
コード例 #3
0
def test_string_format():
    arr = pyarrow.from_pylist(['', None, 'foo'])
    result = fmt.array_format(arr)
    expected = """\
[
  '',
  NA,
  'foo'
]"""
    assert result == expected
コード例 #4
0
ファイル: test_array.py プロジェクト: shenguoquan/arrow
def test_string_format():
    arr = pa.array(['', None, 'foo'])
    result = fmt.array_format(arr)
    expected = """\
[
  '',
  NA,
  'foo'
]"""
    assert result == expected
コード例 #5
0
ファイル: test_array.py プロジェクト: CodingCat/arrow
def test_string_format():
    arr = pa.array(['', None, 'foo'])
    result = fmt.array_format(arr)
    expected = """\
[
  '',
  NA,
  'foo'
]"""
    assert result == expected
コード例 #6
0
ファイル: test_array.py プロジェクト: dremio/arrow
def test_string_format():
    arr = pa.array([u'', None, u'foo'])
    result = fmt.array_format(arr)
    expected = """\
[
  "",
  null,
  "foo"
]"""
    assert result == expected
コード例 #7
0
ファイル: test_array.py プロジェクト: anoordover/arrow
    def test_list_format(self):
        arr = pyarrow.from_pylist([[1], None, [2, 3]])
        result = fmt.array_format(arr)
        expected = """\
[
  [1],
  NA,
  [2,
   3]
]"""
        assert result == expected
コード例 #8
0
ファイル: test_array.py プロジェクト: monte-hayward/arrow
    def test_list_format(self):
        arr = pyarrow.from_pylist([[1], None, [2, 3]])
        result = fmt.array_format(arr)
        expected = """\
[
  [1],
  NA,
  [2,
   3]
]"""
        assert result == expected
コード例 #9
0
def test_long_array_format():
    arr = pa.array(range(100))
    result = fmt.array_format(arr, window=2)
    expected = """\
[
  0,
  1,
  ...
  98,
  99
]"""
    assert result == expected
コード例 #10
0
ファイル: test_array.py プロジェクト: Intellifora/arrow
    def test_long_array_format(self):
        arr = pyarrow.from_pylist(range(100))
        result = fmt.array_format(arr, window=2)
        expected = """\
[
  0,
  1,
  ...
  98,
  99
]"""
        assert result == expected
コード例 #11
0
ファイル: test_array.py プロジェクト: shenguoquan/arrow
def test_list_format():
    arr = pa.array([[1], None, [2, 3, None]])
    result = fmt.array_format(arr)
    expected = """\
[
  [1],
  NA,
  [2,
   3,
   NA]
]"""
    assert result == expected
コード例 #12
0
ファイル: test_array.py プロジェクト: StevenMPhillips/arrow
def test_list_format():
    arr = pa.from_pylist([[1], None, [2, 3, None]])
    result = fmt.array_format(arr)
    expected = """\
[
  [1],
  NA,
  [2,
   3,
   NA]
]"""
    assert result == expected
コード例 #13
0
ファイル: test_array.py プロジェクト: monte-hayward/arrow
    def test_long_array_format(self):
        arr = pyarrow.from_pylist(range(100))
        result = fmt.array_format(arr, window=2)
        expected = """\
[
  0,
  1,
  ...
  98,
  99
]"""
        assert result == expected
コード例 #14
0
ファイル: test_array.py プロジェクト: CodingCat/arrow
def test_long_array_format():
    arr = pa.array(range(100))
    result = fmt.array_format(arr, window=2)
    expected = """\
[
  0,
  1,
  ...
  98,
  99
]"""
    assert result == expected
コード例 #15
0
ファイル: test_array.py プロジェクト: dremio/arrow
def test_list_format():
    arr = pa.array([[1], None, [2, 3, None]])
    result = fmt.array_format(arr)
    expected = """\
[
  [
    1
  ],
  null,
  [
    2,
    3,
    null
  ]
]"""
    assert result == expected