def save(_filename, _dataframe, **options):
    if options.get('dataname'):
        _dataname = options.get('dataname')
    else:
        _dataname = 'twint'
    if (not options.get('type')):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            _store = pd.HDFStore((_filename + '.h5'))
            _store[_dataname] = _dataframe
            _store.close()
    elif (options.get('type') == 'Pickle'):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            _dataframe.to_pickle((_filename + '.pkl'))
    else:
        print('Please specify: filename, DataFrame, DataFrame name and type\n              (HDF5, default, or Pickle)')
def save(_filename, _dataframe, **options):
    if options.get('dataname'):
        _dataname = options.get('dataname')
    else:
        _dataname = 'twint'
    if (not options.get('type')):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            _store = pd.HDFStore((_filename + '.h5'))
            _store[_dataname] = _dataframe
            _store.close()
    elif (options.get('type') == 'Pickle'):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore')
            _dataframe.to_pickle((_filename + '.pkl'))
    else:
        print('Please specify: filename, DataFrame, DataFrame name and type\n              (HDF5, default, or Pickle)')