Top "Reshape" questions

In R, Matlab, NumPy and APL, reshape functions allow data to be transformed into more convenient forms.

Replace NA's in R - works in a practice dataset but warning message when applied to actual data

I have a dataset in R which looks like, and has been reshaped in the same way as, the following …

r dataframe reshape na
Transpose data by groups in R

I have data in the following structure: x <- read.table(header=T, text=" X Y D S a …

r reshape data-manipulation
How to truncate a numpy array?

I am trying to truncate 'data' (which is size 112943) to shape (1,15000) with the following line of code: data = np.reshape(…

python numpy reshape valueerror numpy-slicing
Merge Multiple Data Frames by Row Names

I'm trying to merge multiple data frames by row names. I know how to do it with two: x = data.…

r merge dataframe reshape
Transpose only certain columns in data.frame

Here is the data I have: am group v1 v2 v3 v4 1 2015-10-31 A 693 803 700 17% 2 2015-10-31 B 524 859 302 77% 3 2015-10-31 …

r reshape data-manipulation
In R Merging rows where a column has same value but different case

So I have data where many values (x) have been separated because of case issue and I would like to …

r dplyr reshape summary
How to reshape a blob in Caffe?

How to reshape a blob of the shape N x C x H x W to N x 1 x (C*…

neural-network reshape deep-learning caffe
Pandas adding Time column to Date index

I have a dataframe, Date index type is Timestamp, Time column is datetime.Time: Time Value Date 2004-05-01 0:15 3.58507 2004-05…

python pandas multiple-columns reshape timedelta
How do I use tf.reshape()?

import tensorflow as tf import random import numpy as np x = tf.placeholder('float') x = tf.reshape(x, [-1,28,28,1]) with …

python numpy tensorflow reshape mnist