I used pandas.to_csv() to convert a pandas dataframe to a BED file by doing this:
pd.to_csv('xxx.bed', index=False, sep='\t', header=None)
I want to know if this can successfully convert a dataframe to a bed file, or I am just exporting the dataframe as a csv file.