HDFExtError: Problem creating the table
#### Code Sample, a copy-pastable example if possible

```python
def store_data(df, data_key, **kwargs):
	os.makedirs(data_folder, exist_ok=True)
	store = pd.HDFStore(data_filename, mode='a')
	store.put(data_key, df, format='table', data_columns=True)
	store.close

```
#### Problem description

HDFExtError: Problem creating the table when calling store.put()
This error occurs when the format is 'table' in the store.put line above

The following call stack is spit out. Note the performance warning of exceeding 512 columns:
```
/Users/vm/anaconda/envs/dl3.6/bin/python /Users/vm/probabilistic-gwas-playgound/framework/synthetic_data.py
/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/table.py:993: PerformanceWarning: table ``/trn_data_100x1000__x_nm/table`` is exceeding the recommended maximum number of columns (512); be ready to see PyTables asking for *lots* of memory and possibly slow I/O
  PerformanceWarning)
/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/attributeset.py:473: PerformanceWarning: node ``/trn_data_100x1000__x_nm/table`` is exceeding the recommended maximum number of attributes (4096);be ready to see PyTables asking for *lots* of memory and possibly slow I/O
  PerformanceWarning)
/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/table.py:993: PerformanceWarning: table ``/trn_data_100x1000__pi_nm/table`` is exceeding the recommended maximum number of columns (512); be ready to see PyTables asking for *lots* of memory and possibly slow I/O
  PerformanceWarning)
Traceback (most recent call last):
  File "/Users/vm/probabilistic-gwas-playgound/framework/synthetic_data.py", line 222, in <module>
    store_data(pi_nm, data_key_pre + 'pi_nm', shape=pi_nm.shape)
  File "/Users/vm/probabilistic-gwas-playgound/framework/synthetic_data.py", line 121, in store_data
    store.put(data_key, df, format='table', data_columns=True)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/pandas/io/pytables.py", line 890, in put
    self._write_to_group(key, value, append=append, **kwargs)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/pandas/io/pytables.py", line 1367, in _write_to_group
    s.write(obj=value, append=append, complib=complib, **kwargs)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/pandas/io/pytables.py", line 3963, in write
    self._handle.create_table(self.group, **options)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/file.py", line 1055, in create_table
    chunkshape=chunkshape, byteorder=byteorder)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/table.py", line 833, in __init__
    byteorder, _log)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/leaf.py", line 272, in __init__
    super(Leaf, self).__init__(parentnode, name, _log)
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/node.py", line 266, in __init__
    self._v_objectid = self._g_create()
  File "/Users/vm/anaconda/envs/dl3.6/lib/python3.6/site-packages/tables/table.py", line 1020, in _g_create
    self._v_new_title, self.filters.complib or '', obversion)
  File "tables/tableextension.pyx", line 211, in tables.tableextension.Table._create_table
tables.exceptions.HDF5ExtError: Problems creating the table
```
#### Expected Output

#### Output of ``pd.show_versions()``

<details>

[paste the output of ``pd.show_versions()`` here below this line]
```
(dl3.6) $ python -c 'import pandas as pd; print(pd.show_versions())'

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Darwin
OS-release: 18.2.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.23.4
pytest: 3.0.5
pip: 18.0
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.13.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.5
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
sqlalchemy: 1.1.5
pymysql: None
psycopg2: None
jinja2: 2.9.4
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
None
(dl3.6) $ 

```

```
(dl3.6) $ conda list pytables
# packages in environment at /Users/vm/anaconda/envs/dl3.6:
#
# Name                    Version                   Build  Channel
pytables                  3.4.2               np113py36_0  
(dl3.6) $ conda list pandas
# packages in environment at /Users/vm/anaconda/envs/dl3.6:
#
# Name                    Version                   Build  Channel
pandas                    0.23.4                    <pip>
pandas                    0.20.3                   py36_0  
(dl3.6) $ conda list hdf
# packages in environment at /Users/vm/anaconda/envs/dl3.6:
#
# Name                    Version                   Build  Channel
hdf5                      1.8.17                        1  
(dl3.6) $ conda list python
# packages in environment at /Users/vm/anaconda/envs/dl3.6:
#
# Name                    Version                   Build  Channel
ipython                   5.1.0                    py36_1  
ipython_genutils          0.1.0                    py36_0  
msgpack-python            0.5.6            py36h04f5b5a_1  
python                    3.6.7                haf84260_0  
python-dateutil           2.6.0                    py36_0  
python.app                1.2                      py36_4  
(dl3.6) $ 
```
</details>
