Created
July 28, 2017 18:33
-
-
Save 33sticks/eadbdcbb9ab0a48edd97751e4836ab74 to your computer and use it in GitHub Desktop.
This Python script will remove the comment header from a downloaded Adobe Analytics report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import the pandas library | |
import pandas as pd | |
#pull adobe report download into a dataframe; ignorning the comment header | |
df = pd.read_csv("/Users/jasonthompson/Documents/analysis/python/sp/adobe_id.csv", comment="#", header=1) | |
#export cleaned data to a new csv file | |
df.to_csv("/Users/jasonthompson/Documents/analysis/python/sp/adobe_id_no-comments.csv", encoding='utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment