URGENT : Help me get Date with Time from Dhanhq Python API

@Hardik
@Dhan
@creater_help_adda
@Tradehull_Imran

As per your dhanhq · PyPI

Syntax : dhan.intraday_minute_data(security_id,exchange_segment,instrument_type) # Working

intra = dhan.intraday_minute_data('1333','NSE_EQ','EQUITY','2025-04-01','2025-04-18')

intra_data = pd.DataFrame(intra['data'])	## Subset of above result Working

intra_data.tail(5)		## last 5 columns Working

Syntax : # Time Converter
dhan.convert_to_date_time(EPOCH Date)

intra_data['DateTime'] = dhan.convert_to_date_time(intra_data['timestamp'])

Above command gives following Error. Pl. Help me get Date with Time


intra_data[‘DateTime’] = dhan.convert_to_date_time(intra_data[‘timestamp’])
*** TypeError: cannot convert the series to <class ‘int’>
Traceback (most recent call last):
File “G:\PythonSAM\dhanhq.py”, line 1142, in convert_to_date_time
dt = datetime.fromtimestamp(epoch, IST)
File “C:\Users\Samir\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\series.py”, line 230, in wrapper
raise TypeError(f"cannot convert the series to {converter}")