transform¶
-
transform.
convert_date_into_mjd
(date_st: str, date_en: str) -> (<class 'int'>, <class 'int'>)[source]¶ ‘%Y-%m-%d’ 形式の str を mjd に変換する。
- Parameters
date_st (str) – ‘%Y-%m-%d’ 形式の文字列。
date_en (str) – ‘%Y-%m-%d’ 形式の文字列。
- Returns
mjd_st (int) – date_st を mjd に変換したもの。
mjd_en (int) – date_en を mjd に変換したもの。
-
transform.
convert_to_DatetimeIndex
(df: pandas.core.frame.DataFrame) → None[source]¶ 入力された pandas.DataFrame の index を mjd から DatetimeIndex に変換する。
- Parameters
df (pandas.DataFrame of shape (n_mjds, n_objects)) – m_ap30 の表。
-
transform.
transform_dataframe_to_centering
(df: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame[source]¶ object ごとに m_ap30 の値を中央揃え(平均値を 0)にする。
- Parameters
df (pandas.DataFrame of shape (n_objects, n_mjds)) – m_ap30 の表。
- Returns
df_center – object ごとに m_ap30 の値を中央揃え(平均値を 0)にした m_ap30 の表。
- Return type
pandas.DataFrame of shape (n_objects, n_mjds)