官术网_书友最值得收藏!

Introduction to the Python pandas package

The Python pandas package is very useful when dealing with data. The pandas package is a wonderful tool for data preprocessing, which is essential for data analysis. There is a humorous way of describing the importance of data cleaning: "A data scientist spends 80% of their time cleaning the data and the other 20% complaining about cleaning the data". To test if the package is preinstalled, we can type import pandas as pd after we launch Python. If we don't see any error messages, it means that the package was preinstalled. If we do, then we can use conda install pandas to install the package. To find all available functions, we could use the following three lines of Python code:

To find out about the usage or examples of inpidual functions, the help() function can be used. For example, for the to_pickle functionality shown at the bottom of the previous screenshot, we type help(pd.to_pickle), shown in the first line here:

主站蜘蛛池模板: 茂名市| 富裕县| 杭锦后旗| 大埔区| 吉木萨尔县| 上栗县| 正安县| 三原县| 达拉特旗| 都安| 宝应县| 抚顺县| 华蓥市| 云和县| 威宁| 阿克苏市| 望奎县| 时尚| 九龙城区| 平谷区| 雷波县| 咸阳市| 观塘区| 娄烦县| 临颍县| 长岛县| 罗平县| 大埔县| 崇阳县| 德州市| 宜君县| 陇南市| 普洱| 阿拉善右旗| 石景山区| 浠水县| 阳泉市| 英德市| 荥经县| 基隆市| 铁岭市|