Skip to content

Conversation

michaelaye
Copy link
Contributor

Creating a milliseconds entry by doing math on the seconds entry:

msecs = round(float(seconds[i] % 1)*10**6)

@changhiskhan
Copy link
Contributor

Can you add some test cases for this? Thanks.

@michaelaye
Copy link
Contributor Author

Would love to, but I can't find your date parsing tests? Can you give me a pointer? If you don't have any date parsing tests yet, I'm afraid it's out of my league, as I never wrote a unittest before, but I'm sure I could extend existing ones.

@changhiskhan
Copy link
Contributor

Oh sure thing, please check pandas/io/tests/test_date_converters.py
test_datetime_six_cols uses the converter that calls lib.try_parse_datetime_components

@wesm wesm closed this Nov 30, 2012
@michaelaye michaelaye deleted the fix_seconds_parsing branch June 24, 2014 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants