BUG: read_csv with custom date parser and na_filter=True results in ValueError
State: closed

- [ ] closes #36111 
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry


Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: IO CSV
description: read_csv, to_csv
name: Timedelta
description: Timedelta data type

Comments:
Hello @ftrihardjo! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



* In the file [`pandas/tests/series/test_dtypes.py`](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py):

> [Line 115:1](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L115): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 116:5](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L116): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 117:9](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L117): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 118:9](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L118): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 118:18](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L118): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 118:20](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L118): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 119:9](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L119): [E128](https://duckduckgo.com/?q=pep8%20E128) continuation line under-indented for visual indent
> [Line 119:15](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L119): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 119:17](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L119): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 120:28](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L120): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 120:30](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L120): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 121:17](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L121): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 121:19](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L121): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 123:15](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L123): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 123:17](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L123): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 124:27](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L124): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 124:29](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L124): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 125:28](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L125): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 125:30](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L125): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 126:15](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L126): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals
> [Line 126:17](https://github.com/pandas-dev/pandas/blob/3678f1121c298b2a256088025fbe2ba43b42b938/pandas/tests/series/test_dtypes.py#L126): [E251](https://duckduckgo.com/?q=pep8%20E251) unexpected spaces around keyword / parameter equals



##### Comment last updated at 2021-01-19 21:48:07 UTC
pandas-dev issue #36111 #39496