1. Python 数据类型
1.1 String
- 字符串的换行
1 | # 长字符串的换行 |
1 | # 长字符串的换行 |
1 | import numpy as np |
NumPy( Numerical Python) 是 Python 数值计算最重要的基础库,核心是 N 维数组对象 ndarray ( N-dimensional array )。
1 | import pandas as pd |
Time type 1
2
3>>> t = pd.Timestamp('20180901') # time type
>>> t
Timestamp('2018-09-01 00:00:00')
Created by means of data_range. 1
2
3
4
5>>> dates = pd.date_range('20200101', periods = 6)
>>> dates
DatetimeIndex(['2020-01-01', '2020-01-02', '2020-01-03',
'2020-01-04','2020-01-05', '2020-01-06'],
dtype='datetime64[ns]', freq='D')
conda config --show显示所有的 conda 的config
信息,conda config --show channels显示所有 channel 信息
1 | >>> conda config --show channels |
Linux,全称为
GNU/Linux,是一种免费使用和自由传播的类 UNIX
操作系统。我们常说的 Linux ,指的是 Linux
内核,一个基于 POSIX 的多用户、多任务、支持多线程和多
CPU 的操作系统。
Windows
1 | pip install -U scikit-learn |
macOS
1 | pip install -U scikit-learn |
Linux
1 | pip3 install -U scikit-learn |
Check installation:
1 | pip show scikit-learn |
See more about scikit-learn via clicking here.
版本控制(Revision control)是一种在开发的过程中用于管理我们对文件、目录或工程等内容的修改历史,方便查看更改历史记录,备份以便恢复以前的版本的软件工程技术。