-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_csv epoch parsing with pd.to_datetime() #3757
Comments
This is a MUCH faster way of doing this
|
@nipunreddevil also..your conversion using pd.to_datetime needs an integer (and not a float) in order to create a DateTimeIndex (and is slower because its trying several things); but converting all at once (and I did above) is much faster in any event |
Great! |
click on the 'github flavored markdown' to the right of the comment box, will tell you howthis This might make a nice little doc for the cookbook or main docs, want to put a short example together? It is really hard for pandas to 'figure out' what the user wants sometimes, that's why we have these options! If you could post a small example I'll update the docs, then close thanks |
Do you have some recommended dataset or should i put my own (can't put my On Wed, Jun 5, 2013 at 7:16 PM, jreback [email protected] wrote:
|
just make up a simple example, e.g. just take the first 10 rows and first couple of columns from your dataset (replace with random data), and rename the oclumns to ABCD.... |
Here is a quick attempt from my side: http://nbviewer.ipython.org/5714493 On Wed, Jun 5, 2013 at 7:56 PM, jreback [email protected] wrote:
|
I would just do using I am just going to put a linke (and short description) here: |
I think this should be permanent. nbviewer doesn't host the stuff. It only On Wed, Jun 5, 2013 at 8:34 PM, jreback [email protected] wrote:
|
ok...do you want to do a PR to add it? since you are providing a utc date (by definition epoc seconds are utc) you can do: |
Haven't done a Pull Request before. Would be great if you can help with the On Wed, Jun 5, 2013 at 8:50 PM, jreback [email protected] wrote:
|
read this, pretty much explains how to add to the docs: http://pandas.pydata.org/developers.html |
Would get back pretty soon after reviewing the same. On Wed, Jun 5, 2013 at 9:03 PM, jreback [email protected] wrote:
|
thanks for the PR! |
Thanks for merging my first PR in a big project! On Thu, Jun 6, 2013 at 5:27 PM, jreback [email protected] wrote:
|
in issues, filter on 'Good as first PR' / DOCS |
* Can now load arbitrary channel. * Loads mains data into memory. * added a `load_redd.py` example. Also changed a small detail in the comments for Electricity: * REDD channels are indexed from 1 so I figured that we should probably index channels and meters from 1 too.
References #3764 , #3540
Using pd.to_datetime() took more time and also index is not DateTime
Moreover, since a lot of people tend to record unix timestamps in order to escape different time formats, might be handy to add this functionality inbuilt.
The text was updated successfully, but these errors were encountered: