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
1491
votes
3 answers

Using group by on multiple columns

I understand the point of GROUP BY x. But how does GROUP BY x, y work, and what does it mean?
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
895
votes
9 answers

SQL multiple column ordering

How can I sort multiple columns in SQL and in different directions? For instance, 'column1' would be sorted descendingly and 'column2' ascendingly.
Señor Reginold Francis
  • 16,318
  • 16
  • 57
  • 73
651
votes
21 answers

Expand a div to fill the remaining width

I want a two-column div layout, where each one can have variable width e.g. div { float: left; } .second { background: #ccc; }
Tree
View
I want the 'view' div to expand to the whole width…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
362
votes
16 answers

Apply pandas function to column to create multiple new columns?

How to do this in pandas: I have a function extract_text_features on a single text column, returning multiple output columns. Specifically, the function returns 6 values. The function works, however there doesn't seem to be any proper return type…
smci
  • 32,567
  • 20
  • 113
  • 146
341
votes
11 answers

Scrolling a flexbox with overflowing content

Here's the code I'm using to achieve the above layout: .header { height: 50px; } .body { position: absolute; top: 50px; right: 0; bottom: 0; left: 0; display: flex; } .sidebar { width: 140px; } .main { flex:…
Joseph Silber
  • 214,931
  • 59
  • 362
  • 292
335
votes
8 answers

How do I change Bootstrap 3 column order on mobile layout?

I'm making a responsive layout with a top fixed navbar. Underneath I have two columns, one for a sidebar (3), and one for content (9). Which on desktop looks like this navbar [3][9] When I resize to mobile the navbar is compressed and hidden,…
user3000310
  • 3,355
  • 2
  • 12
  • 5
312
votes
12 answers

Unique Key constraints for multiple columns in Entity Framework

I'm using Entity Framework 5.0 Code First; public class Entity { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public string EntityId { get; set;} public int FirstColumn { get; set;} public int SecondColumn { get; set;} …
154
votes
9 answers

Combine two or more columns in a dataframe into a new column with a new name

For example if I have this: n = c(2, 3, 5) s = c("aa", "bb", "cc") b = c(TRUE, FALSE, TRUE) df = data.frame(n, s, b) n s b 1 2 aa TRUE 2 3 bb FALSE 3 5 cc TRUE Then how do I combine the two columns n and s into a new column named x…
user2654764
  • 1,789
  • 3
  • 14
  • 12
152
votes
8 answers

LINQ to SQL: Multiple joins ON multiple Columns. Is this possible?

Given: A table named TABLE_1 with the following columns: ID ColumnA ColumnB ColumnC I have SQL query where TABLE_1 joins on itself twice based off of ColumnA, ColumnB, ColumnC. The query might look something like this: Select t1.ID, t2.ID, t3.ID …
aarona
  • 35,986
  • 41
  • 138
  • 186
150
votes
10 answers

IntelliJ Column Selection using Cursor Keys

Is it possible to some how setup IntelliJ IDEA so that I can column select with the cursor keys similarly to how I might in Notepad++, Visual Studio, or FlashDevelop. For instance when I'm typing code I almost always do my navigation solely through…
149
votes
19 answers

How to print third column to last column?

I'm trying to remove the first two columns (of which I'm not interested in) from a DbgView log file. I can't seem to find an example that prints from column 3 onwards until the end of the line. Note that each line has variable number of columns.
Amit G
  • 5,165
  • 4
  • 28
  • 29
112
votes
4 answers

Select NOT IN multiple columns

I need to implement the following query: SELECT * FROM friend WHERE ( friend.id1, friend.id2 ) NOT IN (SELECT id1, id2 FROM likes) But NOT IN can't be implemented on multiple columns. How…
Gunjan Nigam
  • 1,363
  • 4
  • 10
  • 18
100
votes
8 answers

Python Pandas - Changing some column types to categories

I have fed the following CSV file into iPython Notebook: public = pd.read_csv("categories.csv") public I've also imported pandas as pd, numpy as np and matplotlib.pyplot as plt. The following data types are present (the below is a summary - there…
gincard
  • 1,814
  • 3
  • 16
  • 24
81
votes
1 answer

Half columns in Twitter Bootstrap 3

I couldn't figure out how to make the bootstrap column like this: col 3 | col 4.5 | col 4.5
76
votes
8 answers

flow 2 columns of text automatically with CSS

I have the code similar to the following:

This is paragraph 1. Lorem ipsum ...

This is paragraph 2. Lorem ipsum ...

This is paragraph 3. Lorem ipsum ...

This is paragraph 4. Lorem ipsum ...

This is paragraph 5.…

Joe Mastey
  • 26,809
  • 13
  • 80
  • 104
1
2 3
99 100