<jupyter_start><jupyter_text>时间操作- `np.datetime_as_string`<jupyter_code>import numpy as np
d = np.arange("2019-10-01",6*10,10,dtype="M8[m]")
d
np.datetime_as_string(d, timezone='UTC')<jupyter_output><empty_output><jupyter_text>- `np.is_busday` 周一到周五 True ,周末 False<jupyter_code>np.is_busday(
    ["2019-10-01","2019-10-31","2019-10-06"]
)<jupyter_output><empty_output><jupyter_text>- `np.busday_count` 统计两个时间点内的具体周几存在几天,默认计算周一到周五<jupyter_code>np.busday_count('2019-10', '2019-11')
np.busday_count('2019-10', '2019-11', weekmask="Sun")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18971631205673758, 'fraction_numerical': 0.1099290780141844, 'mean_word_length': 10.07843137254902, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '357899', 'license': 'Apache-2.0', 'n_tokens_mistral': 317, 'n_tokens_neox': 295, 'n_words': 23, 'path': 'doc/numpy/time_operation.ipynb', 'repo_name': 'huifer/python_doc', 'size': '564'}