--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Depending on the use case, a RangeIndex could save memory (but of course much more limited)
2017-04-13 22:15 GMT+02:00 Pietro Battiston <m...@pietrobattiston.it>:
Il giorno gio, 13/04/2017 alle 19.35 +0000, Nick Eubank ha scritto:
> Hi All,
>
> Is there a way to compress an Int64Index into a Int32Index?
I'm afraid this was supported only partially, and was finally dropped
last year.
But although horribly untested, I suspect that
class Int32Index(pd.Int64Index):
_default_dtype = np.int32
i = Int32Index(np.array([...], dtype='int32'))
might do.
Pietro
--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.