Pandas
Load data from CSV import pandas as pd # Load csv data df = pd.read_csv('pokemon_data.csv') # You can also load excel file excel_data = pd.
Some initial information about Vagrant.
# Shows the running boxes
vagrant status
# Shutdown a box
vagrant halt
The init
initialize the vagrant box and create a new vagrantfile
in the current directory.
vagrant init centos/7
To start the vagrant box
vagrant up
To jump into the vagrant box you can use ssh
command. It takes care of the ssh keys and all of thoses stuff.
vagrant ssh
This helps us to rollback at a later time.
vagrant snapshot save <option> <vm-name> <name>
# To list all of installed boxes
vagrant box list
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# The image name or the box name
config.vm.box = "centos/6"
# You can config networking
config.vm.network :private_network, ip: "192.168.58.111"
# You can create shared directory and map it to the box
config.vm.synced_folder "../data", '/vagrant_data'
# You can customize the hardware allocated to the box
config.vm.provider :virtualbox do |vb|
vb.memory = "1024"
end
# You can add some boot up script
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2
SHELL
end
Each time you make a change to the Vagrantfile
, you need to apply it.
vagrant reload
Load data from CSV import pandas as pd # Load csv data df = pd.read_csv('pokemon_data.csv') # You can also load excel file excel_data = pd.
Hi everybody! My name is Amin and welcome to this blog!