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
1
vote
2 answers

Duplicating rows in pandas Python

i hope you are doing good . I have the following output : ClassName Bugs HighBugs LowBugs NormalBugs WMC LOC Class1 4 0 1 3 34 77 Class2 0 0 0 0 9 45 Class3 …
1
vote
1 answer

How do I Convert a subset of fields in all documents to $toDouble?

I have a database with many documents structured like…
mountainscaler
  • 179
  • 2
  • 11
1
vote
2 answers

subset R dataframe using multiple functions/constraints

I would like to subset a dataframe (dat) in 2 steps. First constraint: keep unique "id". Second constraint: keep the smallest "visit". For example, for id=S2, I want to keep the 3rd row which has visit #1, rather than row2 with visit…
frankieb
  • 41
  • 2
1
vote
3 answers

R - Summary of non NAs for each row

I have a very similar question to this: How to identify which columns are not “NA” per row in a dataframe? I only want to have the results in multiple columns and I need to have the actual values aswell. Its important that it also works when the…
Kimster
  • 23
  • 3
1
vote
1 answer

Reshape Dataframe with Column Information as New Single Column

I need to reshape a df and use the "year" information as a new column after reshaping. My data looks like this for df and will potentially contain more year data and players: index player A 2012 player B 2012 player A 2013 player B…
user2100039
  • 1,280
  • 2
  • 16
  • 31
1
vote
1 answer

Using Android's Google Sheets, how can an entire column of URLs be activated into hyperlinks

I am using Android's Google Sheets mobile app. I've already conducted searches here and online to no avail. The search terms together all muddle the results. Objective A My column (E2:E113) is populated with inactive URLs. I want to activate them…
1
vote
1 answer

CSS trick to display several UL lists with LI elements in multiple columns, depending on the webpage width

For an HTML game website I display several UL lists at the bottom of every page:

How to play?

Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
1
vote
2 answers

Pandas: Iterate through columns index/labels and group the ones that starts with the same strings

I want to group the column index/labels that starts with the same str, but I'cant use str.startswith() because it would be a very long list if I'd have to write every single prefix and than group. So I want to iterate through every column's prefix…
Carol Vieira
  • 69
  • 2
  • 9
1
vote
2 answers

Calculating age based on x['dob'] and x['ReferenceDate'] - Pandas

So I have a dataframe with date of birth(dob) and Inclusion Date (Ref) and since I work on an insurance company it is pretty important to know what age the person is on each month. I tried creating a method like this def relativeAge(dob,ref): ref…
Suetam016
  • 101
  • 7
1
vote
2 answers

columns to rows in r

I have a dataframe like this: DATE CZK EUR USD 2021-07-25 25 15,5555684 4 And I want to turn it into this table: DATE CP mnozstvi 2021-07-25 CZK 25 2021-07-25 EUR 15,5555684 2021-07-25 DOL 4 My data.frame is much larger,…
JEŠTĚR
  • 53
  • 4
1
vote
2 answers

PySpark percentile for multiple columns

I want to convert multiple numeric columns of PySpark dataframe into its percentile values using PySpark, without changing its order. E.g. given an array of column names arr = [Salary, Age, Bonus] to convert columns into…
1
vote
4 answers

Compare two columns of two files and count the differences

I have two files, tab separated, where I want to compare line by line the values of column 1 of file1 with column 1 of file2 and so forth until n columns. The comparisons are to count the differences. Values in columns can be either 0, 1 or 2, for…
guidebortoli
  • 659
  • 3
  • 8
  • 16
1
vote
1 answer

Reshape data.frame with multiple headers

My data.frame looks like…
nflore
  • 196
  • 1
  • 10
1
vote
2 answers

Combining Multiple Columns to Create a Single Variable

A dataset I am using recorded respondents' ethnicity. Responses are recorded across multiple variables, and respondents were allowed to pick more than one. Example: Black White Asian Hispanic 1 NA NA NA NA 1 NA NA NA NA …
1
vote
1 answer

Power Query does not recognize tab as a delimiter in .txt files in the code

this is my first post here, so I apologize in advance if the question has been already answered somewhere or I do something wrong. To summarize the problem: I am doing some spectroscopy measurements and the data from the software I am using is saved…
emir
  • 13
  • 2