机器学习课程-温州大学-01机器学习-引言函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 析环境的重要因素之一。 63 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 64 Python模块-Pandas ⚫ 数据索引 df[5:10] 通过切片方式选取多行 df[col_label] t行 索引作为右键. 66 Python模块-Pandas ⚫数据融合 pd.concat([df1, df2]) 轴向连接多个 DataFrame. 67 Python模块-Pandas 文件读写 从文件中读取数据(DataFrame) pd.read_csv() | 从CSV文件读取 pd.read_table() | 从制表符分隔文件读取,如TSV pd.read_excel() read_sql() | 从 SQL 表 或 数 据 库 读 取 pd.read_json() | 从JSON格式的URL或文件读取 pd.read_clipboard() | 从剪切板读取 将DataFrame写入⽂件 df.to_csv() | 写入CSV文件 df.to_excel() | 写入Excel文件 df.to_sql() | 写入SQL表或数据库 df.to_json() |0 码力 | 78 页 | 3.69 MB | 1 年前3
机器学习课程-温州大学-01深度学习-引言函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分 析环境的重要因素之一。 64 Python模块-Pandas ⚫ 基本数据结构 Series 一维数据结构,包含行索 引和数据两个部分 DataFrame 二维数据结构,包含 带索引的多列数据, 各列的数据类型可能 不同 65 Python模块-Pandas ⚫ 数据索引 df[5:10] 通过切片方式选取多行 df[col_label] t行 索引作为右键. 67 Python模块-Pandas ⚫数据融合 pd.concat([df1, df2]) 轴向连接多个 DataFrame. 68 Python模块-Pandas 文件读写 从文件中读取数据(DataFrame) pd.read_csv() | 从CSV文件读取 pd.read_table() | 从制表符分隔文件读取,如TSV pd.read_excel() read_sql() | 从 SQL 表 或 数 据 库 读 取 pd.read_json() | 从JSON格式的URL或文件读取 pd.read_clipboard() | 从剪切板读取 将DataFrame写入⽂件 df.to_csv() | 写入CSV文件 df.to_excel() | 写入Excel文件 df.to_sql() | 写入SQL表或数据库 df.to_json() |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 application 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 Matplotlib 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 not call matplotlib0 码力 | 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 application 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 Matplotlib 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 not call matplotlib0 码力 | 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 application 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 Matplotlib 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 not call matplotlib0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.6.0 使用手册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 Add 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 Matplotlib 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 not call matplotlib0 码力 | 148 页 | 7.47 MB | 1 年前3
PyWebIO v1.7.1 使用手册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 Add 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 Matplotlib 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 using matplotlib0 码力 | 151 页 | 7.47 MB | 1 年前3
PyWebIO v1.8.2 使用手册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 Add 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 Matplotlib 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 using matplotlib0 码力 | 160 页 | 7.48 MB | 1 年前3
PyWebIO v1.8.1 使用手册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 Add 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 Matplotlib 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 using matplotlib0 码力 | 158 页 | 7.48 MB | 1 年前3
PyWebIO v1.6.2 使用手册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 Add 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 Matplotlib 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 not call matplotlib0 码力 | 148 页 | 7.47 MB | 1 年前3
共 52 条
- 1
- 2
- 3
- 4
- 5
- 6













