I am working with resampling data frame and it works on hours, days mins, but doesn't resample less then sec. Program just hangs even on short time span. So am I missing something?
I tried 0.000001S, U etc... Nothing worked so far.
my time format: 2015-08-29 19:30:47.015506
you can see varable sf represent resampling freq.
grph = df.set_index('Date and Time').resample(sf, len).astype(int)
How can I resample data frame on micro seconds granularity?
If I understand your problem correctly you can't resample microseconds to another frequency that is less than a second, right? I made a toy example and there doesn't seem to be a problem though:
This gives the expected output.
(I think your problem is that you are trying to resample data that are in a microsecond format to microseconds itself, which doesn't make any sense. You want to either upsample or downsample (as in my example).)
For milliseconds/microseconds/seconds use:
Full doc: