Questions tagged [multiple-columns]

Multiple-columns are when text is split into a number of parallel text columns, rather than one column of text. For CSS Multicolumn layout, use the [css-multicolumn-layout] tag.

Multiple-columns are often found in newspapers and magazines, where a single column of text would create a line length longer than the ideal width of optimal readability.

Text can be set to use multiple-columns in CSS by using the CSS Multiple-column layout module.

5872 questions
72
votes
6 answers

Have two columns in Markdown

I would like to write a coding standard specification document with good and bad coding examples. Each rule should have a number, a description and an example. For example here is the rule 1: # Rule 1 Description for rule 1. ## Good ```c int foo…
nowox
  • 25,978
  • 39
  • 143
  • 293
57
votes
3 answers

How does cellForRowAtIndexPath work?

I HAVE READ apple documentation and it's not understandable for such a beginner in Objective-C as me. I'm trying to implement multicolumn UITableView following this link example and it just doesn't work so i need to comprehend how…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
55
votes
2 answers

How to access a column in a list of lists in python

I have a 2D array in python modeled by a list of lists and I want to extract the column. I made a quick research and I found a way that uses numpy arrays. The problem is that I do not want to use numpy so I don't want to convert my list of lists…
Oussama Boussif
  • 811
  • 2
  • 8
  • 13
51
votes
6 answers

How to Customize Bootstrap Column Widths?

I have this, but I feel 4 is too big for my sidebar width and 3 is too small (it has to add up to 12).
I tried this but it doesn't work:
Is…
AnthonyGalli.com
  • 2,796
  • 5
  • 31
  • 80
50
votes
3 answers

Creating UNIQUE constraint on multiple columns in MySQL Workbench EER diagram

In MySQL Workbench's EER diagram, there is a checkbox to make each column in a table unique, not null, primary key etc. However, I would like to have a UNIQUE constraint on multiple columns. Is it possible to add it in in MySQL Workbench's EER…
47
votes
3 answers

Bootstrap 3 Multi-column within a single ul not floating properly

I have been encountering problems like this on the current bootstrap 3 for a while now. I have managed to fix them in the past in one way or another but have no clue of how to fix it this time. I need to create two columns out of one ul by…
davidetucci
  • 471
  • 1
  • 4
  • 3
46
votes
4 answers

How to paste columns from separate files using bash?

Using the following data: $cat date1.csv Bob,2013-06-03T17:18:07 James,2013-06-03T17:18:07 Kevin,2013-06-03T17:18:07 $cat date2.csv 2012-12-02T18:30:31 2012-12-02T18:28:37 2013-06-01T12:16:05 How can date1.csv and date2.csv files be merged? …
blehman
  • 1,870
  • 7
  • 28
  • 39
44
votes
4 answers

Remove rows in python less than a certain value

I feel like this question must have been answered by someone before, but I can't find an answer on stack overflow! I have a dataframe result that looks like this and I want to remove all the values less than or equal to 10 >>> result …
JAG2024
  • 3,987
  • 7
  • 29
  • 58
43
votes
3 answers

Python Pandas: drop a column from a multi-level column index?

I have a multi level column table like this: a ---+---+--- b | c | f --+---+---+--- 0 | 1 | 2 | 7 1 | 3 | 4 | 9 How can I drop column "c" by name? to look like this: a ---+--- b | f --+---+--- 0 | 1 | 7 1 | 3 | 9 I tried…
Boosted_d16
  • 13,340
  • 35
  • 98
  • 158
42
votes
6 answers

How to drop columns which have same values in all rows via pandas or spark dataframe?

Suppose I've data similar to following: index id name value value2 value3 data1 val5 0 345 name1 1 99 23 3 66 1 12 name2 1 99 23 2 66 5 2 name6 1 99 23 7 …
CYAN CEVI
  • 813
  • 1
  • 9
  • 19
38
votes
9 answers

pandas how to swap or reorder columns

I know that there are ways to swap the column order in python pandas. Let say I have this example dataset: import pandas as pd employee = {'EmployeeID' : [0,1,2], 'FirstName' : ['a','b','c'], 'LastName' : ['a','b','c'], …
Yun Tae Hwang
  • 1,249
  • 3
  • 18
  • 30
38
votes
2 answers

Creating a new column in Panda by using lambda function on two existing columns

I am able to add a new column in Panda by defining user function and then using apply. However, I want to do this using lambda; is there a way around? For example, df has two columns a and b. I want to create a new column c which is equal to the…
piyush sharma
  • 407
  • 1
  • 4
  • 7
34
votes
1 answer

Apply a function to a subset of data.table columns, by column-indices instead of name

I'm trying to apply a function to a group of columns in a large data.table without referring to each one individually. a <- data.table( a=as.character(rnorm(5)), b=as.character(rnorm(5)), c=as.character(rnorm(5)), …
Tahnoon Pasha
  • 5,848
  • 14
  • 49
  • 75
34
votes
4 answers

MySQL ORDER BY multiple column ASC and DESC

I have 2 MYSQL tables, users and scores. Detail: users table: scores table: My intention is get 20 users list that have point field sort DESC (descending) combine avg_time field sort ASC (ascending). I use the query: SELECT users.username,…
Tan Viet
  • 1,983
  • 6
  • 25
  • 36
33
votes
4 answers

How to make div same height as parent (displayed as table-cell)

I got a container div containing three child divs (vary in content) - each as tall as the tallest one. I managed this by setting the container to display:table and the child divs to display:table-cell etc. Everything worked just fine, until... I…
Chris
  • 1,597
  • 4
  • 18
  • 26