机器学习课程-温州大学-时间序列总结创建时间序列 Pandas中,时间戳使用Timestamp(Series派生的子 类)对象表示。 该对象与datetime具有高度的兼容性,可以直接通过 to_datetime()函数将datetime转换为TimeStamp对象。 pd.to_datetime('20180828') 9 创建时间序列 如果传入的是多个datetime组成的列表,则Pandas会 将其强制转换为DatetimeIndex类对象。 DatetimeIndex(['2018-08-20', '2018-08-28', '2018-09-08'], dtype='datetime64[ns]', freq=None) 10 创建时间序列 在Pandas中,最基本的时间序列类型就是以 时间戳为索引的Series对象。 date_ser = pd.Series([11, 22, 33], index=date_index) 2018-08-20 时间序列的基本操作 02 固定频率的时间序列 03 时间周期及计算 04 重采样 05 数据统计—滑动窗口 06 时序模型—ARIMA 19 创建固定频率的时间序列 Pandas中提供了一个date_range()函数,主要用 于生成一个具有固定频率的DatetimeIndex对象。 date_range(start = None, end = None, periods0 码力 | 67 页 | 1.30 MB | 1 年前3
机器学习课程-温州大学-01机器学习-引言函数内容⚫高阶函数 匿名函数:高阶函数传入函数时,不需要显式地定义函数,直接传入匿名函数更方便 (lambda函数) 58 ⚫NumPy ⚫Pandas ⚫SciPy ⚫Matplotlib ⚫Scikit-learn Python模块 59 Python模块-NumPy ⚫NumPy NumPy是一个用Python实现的科学计算的扩展程序库,包括: Python模块-NumPy 切片 61 Python模块-NumPy 广播 62 Python模块-Pandas ⚫Pandas Pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而 创建的。 Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型 数据集所需的工具。Pandas提供了大量能使我们快速便捷地处理数据的 函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 成为强大而高效的数据分 析环境的重要因素之一。 63 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 64 Python模块-Pandas ⚫ 数据索引 df[5:10] 通过切片方式选取多行 df[col_label] or df 0 码力 | 78 页 | 3.69 MB | 1 年前3
机器学习课程-温州大学-01深度学习-引言函数内容⚫高阶函数 匿名函数:高阶函数传入函数时,不需要显式地定义函数,直接传入匿名函数更方便 (lambda函数) 59 ⚫NumPy ⚫Pandas ⚫SciPy ⚫Matplotlib ⚫Scikit-learn Python模块 60 Python模块-NumPy ⚫NumPy NumPy是一个用Python实现的科学计算的扩展程序库,包括: Python模块-NumPy 切片 62 Python模块-NumPy 广播 63 Python模块-Pandas ⚫Pandas Pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而 创建的。 Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型 数据集所需的工具。Pandas提供了大量能使我们快速便捷地处理数据的 函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 成为强大而高效的数据分 析环境的重要因素之一。 64 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 65 Python模块-Pandas ⚫ 数据索引 df[5:10] 通过切片方式选取多行 df[col_label] or df 0 码力 | 80 页 | 5.38 MB | 1 年前3
PyWebIO v1.5.1 使用手册app=cutecharts] Cookbook Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Blocking confirm model Input in the popup Redirect stdout to PyWebIO key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Simply do not0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.2 使用手册app=cutecharts] Cookbook Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Blocking confirm model Input in the popup Redirect stdout to PyWebIO key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Simply do not0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.0 使用手册app=cutecharts] Cookbook Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Blocking confirm model Input in the popup Redirect stdout to PyWebIO key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Simply do not0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.0 使用手册Cookbook 参见 PyWebIO Battery Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Add new syntax highlight for code output Web application related key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Simply do not0 码力 | 148 页 | 7.47 MB | 1 年前3
PyWebIO v1.7.1 使用手册Cookbook 参见 PyWebIO Battery Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Add new syntax highlight for code output Web application related key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Instead of using0 码力 | 151 页 | 7.47 MB | 1 年前3
PyWebIO v1.8.2 使用手册Cookbook 参见 PyWebIO Battery Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Add new syntax highlight for code output Web application related key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Instead of using0 码力 | 160 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.1 使用手册Cookbook 参见 PyWebIO Battery Interaction related Equivalent to “Press any key to continue” Output pandas dataframe Output Matplotlib figure Add new syntax highlight for code output Web application related key to continue” Output pandas dataframe 参见 pandas.DataFrame.to_html — pandas documentation [https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html#pandas-dataframe-to-html] Output Output Matplotlib figure actions(buttons=["Continue"]) import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(6, 4), columns=list("ABCD")) put_html(df.to_html(border=0)) Instead of using0 码力 | 158 页 | 7.48 MB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













