Top "Transpose" questions

Transposition is an operation that applies to matrices wherein the rows and columns are swapped

Javascript equivalent of Python's zip function

Is there a javascript equivalent of Python's zip function? That is, given multiple arrays of equal lengths create an array …

javascript python functional-programming transpose
How to pivot a dataframe in Pandas?

I have a table in csv format that looks like this. I would like to transpose the table so that …

python pandas dataframe transpose
Excel: Formulas for converting data among column / row / matrix

Are there formulas to convert data in a column to a matrix or to a row? And to convert from/…

excel matrix excel-formula transpose
Convert column to row in Python Pandas

I have the following Python pandas dataframe: fruits | numFruits --------------------- 0 | apples | 10 1 | grapes | 20 2 | figs | 15 I want: apples | grapes | figs ----------------------------------------- Market 1 …

python pandas dataframe transpose
How does NumPy's transpose() method permute the axes of an array?

In [28]: arr = np.arange(16).reshape((2, 2, 4)) In [29]: arr Out[29]: array([[[ 0, 1, 2, 3], [ 4, 5, 6, 7]], [[ 8, 9, 10, 11], [12, 13, 14, 15]]]) In [32]: arr.transpose((1, 0, 2)) Out[32]: array([[[ 0, 1, 2, 3], [ 8, 9, 10, 11]], [[ 4, 5, 6, 7], [12, 13, 14, 15]]]) When we pass a tuple of …

python arrays numpy transpose
Transposing a dataframe maintaining the first column as heading

I have a big dataframe, but small example would be like this: mydf <- data.frame(A = c(letters[1:10]), …

r dataframe transpose
SQL Server 2008 Vertical data to Horizontal

I apologize for submitting another question on this topic, but I've read through many of the answers on this and …

sql-server pivot transpose
SQL to transpose row pairs to columns in MS ACCESS database

I have an MS Access database that contains translated sentences in source-target pairs (a translation memory for fellow users of …

sql ms-access rows transpose
Transpose column to row with Spark

I'm trying to transpose some columns of my table to row. I'm using Python and Spark 1.5.0. Here is my initial …

python apache-spark pivot transpose