Detects table name from filename

table = os.path.basename(filepath_or_fileobj).split(".")[0]