Tested with
Python 2.7, OS X 10.11.3 El Capitan, Apache Spark 1.6.0 & Hadoop 2.6
Download Apache Spark and build it or download the pre-built version.
Tested with
Python 2.7, OS X 10.11.3 El Capitan, Apache Spark 1.6.0 & Hadoop 2.6
Download Apache Spark and build it or download the pre-built version.
This is a short overview on how to completely remove any old mysql server installs in OSX and upgrade to MariaDB without conflicts. Things can get a bit weird when you have various old installs of MySQL server floating around, and utilizing homebrew to install and upgrade MariaDB as a drop in replacement for MySQL has worked well, especially if you're used to managing MySQL installs via yum in linux.
Backup all of your current databases with mysqldump
This isn't a tutorial on backups, and there are many ways to do it. You should know how to backup your data anyway. For this example, we'll do a full backup of our InnoDB databases.
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
| val list = (1 to 10).toList | |
| // imutable map | |
| val map1 = list.foldLeft(Map.empty[Int,String])( (map, value) => map + (value -> value.toString) ) | |
| // this is equivalent to | |
| val map1 = list.foldLeft(Map.empty[Int,String])( (map, value) => map + ((value, value.toString)) ) | |
| // imutable map with more complex value (note the extra parenthesis) |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # vim: ft=python ts=4 sw=4 expandtab | |
| # | |
| # Copyright (c) 2013 Reed Kraft-Murphy <reed@reedmurphy.net> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |