"利用python进行数据分析"学习记录01
阅读原文时间:2023年07月12日阅读:2

"利用python进行数据分析"学习记录

--day01 08/02

与书相关的资料在 http://github.com/wesm/pydata-book

pandas 的2名字来源是 pannel data

安装python的包

  • conda install package_name
  • pip install package_name

更新python的包

  • conda update package_name
  • pip install --upgraade package_name

我觉得conda好用多了,能用conda绝对不用原生

jupyter

  • 代码输入到In区,在按shift + enter
  • 输出结果展现在out区

导入约定

  • puthon 社区对一些常用模块进行了命名的约定

  • * import numpy as np
    import matplotlib.pyplot as plt
    import pandas as pd
    import seaborn as sns
    import statsmodels as sm

  • * 故np.arrange 是用的是NumPy中的arrange函数

伪代码

  • 类代码,事实上不是实际有效的源代码

处理/处置/规整(munge/munging/wrangling)

  • 将非结构化的或者同时又很凌乱的数据整理成结构化、清晰形式的整个过程

内省

  • 直接在jupyter notebook 中的In [n]:行中打?、??
  • * ?一个打印类型,两个打印源代码

munge

[ muhnj ]


verb (used with or without object), munged, mung·ing. Computer Slang.

to manipulate (raw data), especially to convert (data) from one format to another:the munging of HTML content.

grunge

[ gruhnj ]


noun Slang.

dirt; filth; rubbish.

something of inferior quality; trash:He didn't know good music from grunge.

a person who works hard, usually for meager rewards; grind.

a style or fashion derived from a movement in rock music: in fashion characterized by unkempt clothing and in music by aggressive, nihilistic songs.

wrangle

[ rang-g_uh_l ]SHOW IPA


verb (used without object), wran·gled, wran·gling.

to argue or dispute, especially in a noisy or angry manner.

verb (used with object), wran·gled, wran·gling.

to argue or dispute.

to tend or round up (cattle, horses, or other livestock).

to obtain, often by contrivance or scheming; wangle:He wrangled a job through a friend.

noun

a noisy or angry dispute; altercation.

上文的wangling指的是通过权宜或计划获得

错误收集

In [1]:def add_number(a,b):

shift + enter

SyntaxError: unexpected EOF while parsing

EOF是一个计算机术语,为End Of File的缩写,在操作系统中表示资料源无更多的资料可读取。 资料源通常称为档案或串流。 通常在文本的最后存在此字符表示资料结束。

  • 没有正经结尾