Skip to content

Instantly share code, notes, and snippets.

@nooperpudd
Created May 21, 2019 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nooperpudd/84d9ac5fb67fca5aa3e28ab513a5a18d to your computer and use it in GitHub Desktop.
Save nooperpudd/84d9ac5fb67fca5aa3e28ab513a5a18d to your computer and use it in GitHub Desktop.
# row_size = chunk_frame.shape[0]
# print(chunk_frame)
# print(chunk_frame)
# numpy.datetime64 2019-05-21T19:37:20.913950000
# index_array = chunk_frame.index.to_numpy()
# print("^"*100)
# print(self.dtypes)
# # print(chunk_frame)
# numpy_array = chunk_frame.to_numpy(dtype="object")
# print(numpy_array[0][0])
# print(type(numpy_array[0][0]))
# # numpy_array = numpy.apply_along_axis(lambda x:x[0].to_pydatetime(),1, numpy_array)
# print(numpy_array)
# b = index_array.reshape(-1, 1)
# e = numpy.concatenate((b,numpy_array),axis=1)
#
# # print(e)
# # e = numpy.delete(e,1,1)
# print(e)
# # e = e.astype([("timestamp",numpy.int64),("value1",numpy.int),("value2",numpy.int)])
# print(e.shape)
# # e = e.astype(self.dtypes)
# print(e)
# # e = e[:,1:]
# print(e)
# # todo pandas bugs
# print(numpy_array.dtype)
#
# # print(numpy_array)
# # print(numpy_array)
# print("!*"*100)
# print(numpy_array.shape)
# print(numpy_array.dtype)
# # print("sahpe")
# # print(numpy_array.shape)
# #
# # print(index_array)
# # print(index_array.shape)
# # b= index_array.reshape(-1,1)
# # print(b)
# # print(type(b))
# # print(type(numpy_array))
# # print(merged_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment