You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import pandas as pd |
|
|
|
def convert_sec_to_ms(sec) -> int: |
|
return int(sec) * 1000 |
|
|
|
def convert_pd_timestamp_to_ms(timestamp: pd.Timestamp) -> int: |
|
# TODO: convert from nanoseconds to millisecond in a better way: not by dividing by 10^6 |
|
return int(timestamp.value) / 1000000
|
|
|