text: import pandas as pd
  from bdshare import get_hist_data
  
  def dse_hist(startdate, enddate, instrument):
    df = get_hist_data(startdate, enddate, instrument)
    df = df.sort_index(ascending = True)
    df = df.reset_index()
    df = df[["date", "symbol", "ltp", "high", "low", "open", "close", "ycp", "trade", "value", "volume"]]
    df.columns = ["DATE", "TRADING.CODE", "LTP", "HIGH", "LOW", "OPENP", "CLOSEP", "YCP", "TRADE", "VALUE", "VOLUME"]
    cols = df.columns.drop(['DATE', 'TRADING.CODE'])
    df[cols] = df[cols].apply(pd.to_numeric, errors='coerce') 
    df[cols] = df[cols].round(2)
    return (df)
  