<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 ApJdataFrames Harvey 2010
Title
Step1:  Table 2 - Photometry of Selected Candidates
Step2:  Data cleaning.
Step3:  Split [value +or- error] into separate columns
Step4:  Split the position into RA and DEC.
Step5:  Save data locally
!!mkdir ../data/Harvey2010
<ASSISTANT_TASK:>
Python Code:
%pylab inline
import seaborn as sns
import warnings
warnings.filterwarnings("ignore")
import pandas as pd
Explanation: ApJdataFrames Harvey 2010
Title: A SPITZER SEARCH FOR PLANETARY-MASS BROWN DWARFS WITH CIRCUMSTELLAR DISKS: CANDIDATE SELECTION
Authors: Paul M. Harvey1, Daniel T. Jaffe1, Katelyn Allers2, and Michael Liu3
Data is from this paper:
http://iopscience.iop.org/0004-637X/720/2/1374/article
End of explanation
names = ['Position','I','J','H','K_s','[3.6]','[4.5]','[5.8]','[8.0]','A_v','Luminosity']
link = 'http://iopscience.iop.org/0004-637X/720/2/1374/suppdata/apj363663t2_ascii.txt'
harvey2010_raw = pd.read_csv(link, sep='\t', names=names, skiprows=5, na_values=' sdotsdotsdot ')
Explanation: Table 2 - Photometry of Selected Candidates
End of explanation
harvey2010_raw.dropna(how='all', inplace=True)
Explanation: Data cleaning.
End of explanation
fv = lambda a: a.split(' +or- ')[0] if a == a else np.NaN
fe = lambda a: a.split(' +or- ')[-1] if a == a else np.NaN #awesome little hack here!
bands = ['I','J','H','K_s','[3.6]','[4.5]','[5.8]','[8.0]']
harvey2010_tbl2 = harvey2010_raw.drop(bands, axis=1)
for band in bands:
    harvey2010_tbl2[band]=harvey2010_raw[band].apply(fv)
    harvey2010_tbl2[band+'_e']=harvey2010_raw[band].apply(fe)
Explanation: Split [value +or- error] into separate columns: [value], [error]
End of explanation
harvey2010_tbl2.insert(0, 'RA', harvey2010_tbl2.Position.str.slice(0, 11).copy())
harvey2010_tbl2.insert(1, 'DEC', harvey2010_tbl2.Position.str.slice(12).copy())
harvey2010_tbl2.drop('Position', axis=1, inplace=True)
Explanation: Split the position into RA and DEC.
End of explanation
harvey2010_tbl2.to_csv('../data/Harvey2010/tbl2.csv')
Explanation: Save data locally
!!mkdir ../data/Harvey2010
End of explanation
<END_TASK>