PythonCugeopandas Open Source Project and Online Test Code

Course sourcehttps://developer.ibm.com/zh/technologies/analytics/tutorials/data-analysis-in-python-using-pandas/

Online python’s jupyter notebook test codehttps://mybinder.org/v2/gh/geopandas/geopandas/master

From open source project address:  https://github.com/lvwuwei/geopandas

Data frames are a two-dimensional data structure. The data consist of rows and columns, which can be created in various ways. For example, you can load files or use NumPy arrays and dates as indexes.NumPy A Python library that handles multi-dimensional arrays and matrices (the matrix contains a collection of large number of algorithm functions to run on these arrays). The following code is the data frame: df1 的示例,其中以日期作为索引,以 6×4 的随机数数组作为值,列名称是 A、B、C 和 D。

import pandas as pd
import numpy as np

dates = pd.date_range('20200101', periods=6)
numbers = np.random.randn(6, 4)
df1 = pd.DataFrame(numbers, index=dates, columns=['A', 'B', 'C', 'D'])
df1

Runs the code in front of you, and produces an output similar to the figure below. The Notebook shows several other ways to create a data frame.

数据帧输出

Not completed, next generate integer

未经允许不得转载:萌萌Apprentissage » PythonCugeopandas Open Source Project and Online Test Code

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本