从数据处理到人工智能(常用库的介绍)

Python库之数据分析

 

 ​​​​​​​​​​​​

 可以这么理解pandas通过扩展了对一维数据和二维数据的一种表示,因而能够形成更高层对数据的操作,简化数据分析的运行 

Python库之数据可视化

Matplotlib — Visualization with Python 

 seaborn: statistical data visualization — seaborn 0.12.2 documentation (pydata.org) 

 Mayavi: 3D scientific data visualization and plotting in Python — mayavi 4.8.1 documentation (enthought.com) 

Python库之文本处理

比如我们需要把俩个PDF格式的文件合并输出成一个文件,我们的代码只需要将俩个文件打开,利用PyPDF库中的一个PdFileMerger,将它合并整合之后输出就可以了

from PyPDF2 import PdfFileReader, PdfFileMerger
merger = PdfFileMerger()
input1 = open("document1.pdf", "rb")
input2 = open("document2.pdf", "rb")
merger.append(fileobj = input1, pages = (0,3))
merger.merge(position = 2, fileobj = input2, pages = (0,1))
output = open("document-output.pdf", "wb")
merger.write(output)

 NLTK :: Natural Language Toolkit

 

 python-docx — python-docx 0.8.11 documentation

Python库之机器学习

 scikit-learn: machine learning in Python — scikit-learn 1.2.2 documentation 

关于TensorFlow | TensorFlow中文官网 

 Apache MXNet | A flexible and efficient library for deep learning. 

 

猜你喜欢

转载自blog.csdn.net/weixin_64612659/article/details/130374430