plotbox.utils module

plotbox.utils.arrays_to_df(arrays, names=None)

function to easily convert data types Takes a list of arrays, returns a pandas dataframe in same order

plotbox.utils.df_to_arrays(df, cols)

function to easily convert data types Takes a df and a list of column names, returns a list of arrays in same order

plotbox.utils.extract_date(date_input, to_pandas=True)

Converts any date input into a datetime object

Parameters:date_input (int(s), float(s), or string(s)) –
Returns:date
Return type:datetime object(s)
plotbox.utils.from_unixtime(date_input)

Given a unix timestamp in seconds, milliseconds, microseconds, or nanoseconds from 1-Jan-1970: returns a datetime.datetime object. If the timestamp is not covertable to float, the method will pass and return the input as given

Parameters:date_input (int, float, or string) –
Returns:date
Return type:datetime object
plotbox.utils.get_config()
plotbox.utils.hide_input_cells()
plotbox.utils.mreplace(s, dic)