创建python虚拟环境

在终端命令行:

1
python3 -m venv venv

激活

  • Windows版本:
1
venv\Scripts\activate

要求prompt

摘要
摘要是论文内容的简要陈述,应尽量反映论文的主要信息,内容包括研究目的、方法、
成果和结论,不含图表,不加注释,具有独立性和完整性。中文摘要一般为 400 字左右,
英文摘要应与中文摘要内容完全相同。“摘要”字样位置居中。
关键词是反映毕业设计(论文)主题内容的名词,是供检索使用的。主题词条应为通用技术词汇,不得自造关键词,尽量从《汉语主题词表》中选用。关键词一般为3-5个,按词条外延层次(学科目录分类),由高至低顺序排列。关键词排在摘要正文部分下方。

1.R

Preparation

Download: R

IDE: RStudio

![[Pasted image 20250508100748.png]]

2.Python

pandas库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pandas as pd

df = pd.read_csv('') //1.读取csv文件

df.head() //2.读取前 5

df.info() /*3.快速了解一个 DataFrame 的结构和基本信息,包括:行数和列数;每一列的名字和数据类型(dtype);非空(non-null)值的数量;占用的内存。

用途:快速查看缺失值(通过 non-null count);理解每列的数据类型(object, int, float 等);检查数据量(多少行多少列)*/

df.shape //4.查看行数列数,返回元组(行数, 列数)

df['列名'] = pd.to_datetime(df['列名'], format='原始日期格式,如%d/%m/%Y') //5.把日期字符串变成‘datetime64’格式;

df['列名'].unique() //所有不重复值,即每种取一个



My first ever blog

Creating a personal blog—a place that feels like my own little world—has been on my mind for over half a year. However, due to a heavy academic load and various commitments, this idea kept getting postponed…until now. This blog will be a platform to share tech experiences, document my self-learning journey, and spark idea exchanges. It’s open to everyone—feel free to leave your thoughts in the comments. Let’s connect and communicate beyond boundaries of gender, race, or nationality.

If you’d like to contact me, feel free to say hello at rz.devlog@gmail.com. I love meeting new friends and exchanging fresh perspectives!