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
1 answer

How to associate two lists or columns?

Code/Program: # 1. Represent all unique feature types (column 2). lines = f.read().split('\n') # Set features unique_features = set((i.split('\t')[1]) for i in lines) unique_features = sorted(unique_features) qty_features…
Valy1004
  • 43
  • 5
1
vote
1 answer

How to compare values in the first-positioned list item across multiple columns in Python Pandas?

Here is the data ID VAR1 VAR2 VAR3 1 [12, 'a', 'ok'] [4, 'b', 'duk'] NaN 2 NaN NaN NaN 3 [1, 'f', 'sd'] NaN [34, 'daa'] I want to create a new…
KubiK888
  • 4,377
  • 14
  • 61
  • 115
1
vote
1 answer

Difference between single and double bracket in calling columns

I'm in the process of learning R and hoped for some clarification on something. Given this dataframe: myDataset <- data.frame("IDs" = rep(1:10,each = 5), "session" = rep(1:5, times = 10), "IV" =…
1
vote
1 answer

Combining csv files columns together Pandas Python

I am trying to combine file1-3.csv so that I could get the expected result. I want to combine all the rows together on all 3 file, but disregard the 1st column as it is the same on all 3 files. How can i do this with pandas. Code: import pandas as…
tony selcuk
  • 709
  • 3
  • 11
1
vote
3 answers

LINQ OrderBy using condition AND Multiple columns

These two work query.OrderBy(a => a.Name).ThenBy(a => a.LastName) Also works query.OrderBy( a=> a.Type == 1 ? a.Name : otherTypeSortOrderColumn) Similarly you can do from a in query orderby a.Name,a.LastName select a; and From a in query orderby…
Nehio
  • 31
  • 1
  • 5
1
vote
4 answers

Parse strictly formatted text containing multiple entries with no delimiting character

I have a string containing multiple products orders which have been joined together without a delimiter. I need to parse the input string and convert sets of three substrings into separate rows of data. I tried splitting the string using split() and…
Afif Zuhair
  • 53
  • 1
  • 10
1
vote
3 answers

Merge multiple columns in pandas but move old column headers to align with the data

I am using Pandas on csv files and am trying to find code to get a large data set where we are describing the temperatures on each floor and trying to distinguish our locations and floor numbers. What I have now is Building Floor 1 Temp Floor 3…
eocraw01
  • 13
  • 2
1
vote
2 answers

How do I detect the presence of a pattern in a string, for a fixed set of patterns?

In the context of variable selection, I'm trying to count the number of times a variable is selected over bootstrapped iterations. A simple version of the problem is provided below, along with my solution (answer). But my solution quickly becomes…
sometimes_sci
  • 183
  • 1
  • 10
1
vote
1 answer

Python scrapes all columns of a table, but I only want to see one of the columns

I am using Python to scrape the names of the U.S. Congress from Ballotpedia (https://ballotpedia.org/List_of_current_members_of_the_U.S._Congress). My current code is giving me all four columns in each of the two tables (Senate and House). Here is…
1
vote
1 answer

Is there a way to rotate column's to row in snowflake?

I have table with single row like below which comes from snowflake query like below show warehouses like 'COMMON_WH'; select "name","state","type","size" FROM…
1
vote
1 answer

flexbox row layout with column like order - impossible?

I have a layout problem and I'm having trouble thinking of a solution. This is part of a form and basically its a dynamic list of checkboxes and their labels. Based on the screen width its either in 1, 2, or 3 columns. We're arranging in columns,…
1
vote
1 answer

Combine criteria / macros VBA

Sub Macro_1() Dim RowIndex, x As Integer Dim RowArr() As String RowIndex = "8,9,11,12,13,14,15,16,17" RowArr = Split(RowIndex, ",") Application.ScreenUpdating = False Sheets("Test").Select For x = 0 To UBound(RowArr) …
1
vote
1 answer

generate columns based on row dates

I need to create a column based on dates, this is my dataset: test <- data.frame(PatientID = c("1000285","1000317", "1000399","10006485","10995700317" ), dateMI = c(NA, NA, "2008-10-26", "2008-10-26", NA),dateA = c(NA, NA,"2008-10-26", "2010-11-06",…
Lili
  • 547
  • 6
  • 19
1
vote
1 answer

Create a calculated countdown column that evaluates two separate columns

I need to create a new calculated column called "Remaining Points" using DAX. The column needs to evaluate a previous column which is separated from other rows by both "Project Name" and "Sprint" columns. The new column looks at the max points (by…
1
vote
2 answers

Trying to scrape from pages with Python and put this info into a csv, getting only the results for the last element of the list

I'm trying to scrape from multiple Ballotpedia pages with Python and put this info into a csv, but am only getting the results for the last element of the list. Here is my code: import pandas as pd list =…