(cls)
| 1842 | ] |
| 1843 | ) |
| 1844 | def test_table_remove_column_empty(cls): |
| 1845 | # ARROW-1865 |
| 1846 | data = [ |
| 1847 | pa.array(range(5)), |
| 1848 | ] |
| 1849 | table = cls.from_arrays(data, names=['a']) |
| 1850 | |
| 1851 | t2 = table.remove_column(0) |
| 1852 | t2.validate() |
| 1853 | assert len(t2) == len(table) |
| 1854 | |
| 1855 | t3 = t2.add_column(0, table.field(0), table[0]) |
| 1856 | t3.validate() |
| 1857 | assert t3.equals(table) |
| 1858 | |
| 1859 | |
| 1860 | def test_empty_table_with_names(): |