Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ENH/BUG: pd.read_csv(): usecols does not work when also using skipfooter #4335
Steps to reproduce:
>>> import pandas as pd >>> pd.__version__ '0.10.1' >>> import StringIO >>> data = 'a,b,c,d\n1,2,3,foo\n4,5,6,bar\n7,8,9,baz' >>> df = pd.read_csv(StringIO.StringIO(data), usecols=) >>> df b 0 2 1 5 2 8 >>> df = pd.read_csv(StringIO.StringIO(data), usecols=, skipfooter=1) >>> df a b c d 0 1 2 3 foo 1 4 5 6 bar
I've started working, but it's still very much a WIP.