系列文章目录
提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加
例如:第一章 Python 机器学习入门之pandas的使用
提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档
前言
提示:这里可以添加本文要记录的大概内容:
例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。
提示:以下是本篇文章正文内容,下面案例可供参考
一、pandas是什么?
示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。
二、使用步骤
1.修改hosts文件
cat /etc/ansible/hosts
[mha]
192.168.1.50 ansible_ssh_user='root' ansible_ssh_pass='rootroot'
192.168.1.51 ansible_ssh_user='root' ansible_ssh_pass='rootroot'
192.168.1.52 ansible_ssh_user='root' ansible_ssh_pass='rootroot'
192.168.1.53 ansible_ssh_user='root' ansible_ssh_pass='rootroot'
192.168.1.54 ansible_ssh_user='root' ansible_ssh_pass='rootroot'
2.读入数据
cat pushssh.yaml
---
- hosts: mha
user: root
tasks:
- name: ssh-copy
authorized_key: user=root key="{{ lookup('file', '/root/.ssh/id_rsa.pub') }}"
3.配置免密
ansible-playbook pushssh.yaml
[root@Ansible01 ansible]# ansible-playbook pushssh.yaml
PLAY [mha] ***************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************************************************************************************
ok: [192.168.1.53]
ok: [192.168.1.52]
ok: [192.168.1.50]
ok: [192.168.1.51]
ok: [192.168.1.54]
TASK [ssh-copy] **********************************************************************************************************************************************************************************************
changed: [192.168.1.51]
changed: [192.168.1.52]
changed: [192.168.1.53]
changed: [192.168.1.54]
changed: [192.168.1.50]
PLAY RECAP ***************************************************************************************************************************************************************************************************
192.168.1.50 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
192.168.1.51 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
192.168.1.52 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
192.168.1.53 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
192.168.1.54 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
执行成功
总结
提示:这里对文章进行总结:
例如:以上就是今天要讲的内容,本文仅仅简单介绍了pandas的使用,而pandas提供了大量能使我们快速便捷地处理数据的函数和方法。