I have a 'some.xlsb' file with some 10 columns, out of which 2 are DateTime
column.
When I load using pandas the date-time column is parsed in a different form.
Explanations:
where DateTime
value corresponding to 4/10/2021 11:50:24 AM
- read as 44296.5
Below is the code I tried.
goods_df = pd.read_excel('some.xlsb',
engine='pyxlsb', sheet_name='goods_df')
goods_df_header = goods_df.iloc[1]
goods_df.columns = goods_df_header #set the header row as the df header
goods_df= goods_df[2:]
goods_df.head(2)