5,913 questions
0
votes
0
answers
46
views
x "! Package longtable Error: longtable not in 1-column mode." from twocolumn article (extarticle) and longtable for (raw) markdown tables
My little demo example is given as follows:
---
output:
pdf_document:
latex_engine: xelatex
keep_tex: no
documentclass: extarticle
classoption: "a4paper,8pt,oneside,twocolumn"
...
1
vote
0
answers
24
views
Using sort with numeric columns separated by letters & underscores
I'm trying to sort phrases such as the following:
a12_b7
a12_b11
a5_b3
a5_b30
a12_b10
using the numbers following the letters, lexicographically. For the example above, I expect the result to be:
...
3
votes
1
answer
65
views
Assign column status retrospectively in pandas
I have created the following pandas dataframe:
import pandas as pd
import numpy as np
ds = {'col1' : [234,321,284,286,287,300,301,303,305,299,288,300,299,287,286,280,279,270,269,301]}
df = pd....
1
vote
0
answers
34
views
Small Multiple Project by Phase with Status Icon
SampleData
I am trying to create a custom visual in power bi using Deneb and Vega code.
I need a small multiple chart that groups the Projects in columns by phase. I also have to add an icon to show ...
3
votes
6
answers
154
views
how to select matching rows in multiple files with AWK
I have over forty files with the following structure:
file1 first 21 lines
8191 M0
139559 M1
79 M10
1 M10007
1 M1006
1 M10123
file2 first 21 lines
8584 M0
119837 M1
72 M10
1 M10003
1 M10045
1 M1014
...
0
votes
3
answers
126
views
How to combine certain columns based on names into one for each line in an output file which contains a list of filenames and their respective values
Output file contains below values.
-rw-rwx--- 1 user1 group1 name with spaces 1G May 1 2025 file_1
-rw-rwx--- 1 user1 group1 name with spaces 2G May 1 2025 file_2
...
1
vote
2
answers
50
views
Align columns using grid-template-columns
I have two sections using CSS grid and grid-template-columns. The 1st one shows 4 boxes per row, while the 2nd one shows 3.
Since the first element of this 2nd section has 50%, I'd like the space/gap ...
-1
votes
1
answer
52
views
Multi-column style in `<fieldset>` does not work in Microsoft Edge, but works with Firefox; why?
Disclaimer: I'm not a CSS professional, just iterate over reading examples and specs and trying.
Specifically I'm unsure whether display: flow-rootis the best possible choice, but interactive trying ...
3
votes
2
answers
147
views
How to make the column width constant in a multi-column layout? (NOT a table)
I want to display some textual contents with a constant line width (or rather, a maximum line width), regardless of the available width. If that was my only requirement, I would set width: 30ex; (or ...
1
vote
2
answers
70
views
Laravel case insensitive unique validation rule on multiple columns
I'm trying to validate a form, where there are two mandatory columns whose combination must be unique in the table. Validator should also ignore the case of the input.
$data = request()->validate([
...
0
votes
1
answer
26
views
KeyError using Astropy .differentials code
I keep getting KeyError: 'd_ρ' on my d_rho = ... line. I am trying to run the differentials so that I can put them in a table column (or single column per variable), to use for calculating velocity. ...
0
votes
1
answer
72
views
css column-count fails on html table in Firefox
The following code works on most browsers, but fails on Firefox, i.e. displays everything in one column. What do I do?
The bottom of this post contains 2 screenshots. The first is my code in Chrome, ...
1
vote
1
answer
69
views
boxplot across multiple columns in R
I'm new to R and having next to nothing experience with it I'm struggling with what may be a pretty easy problem. I have a dataset of acceptability judgments provided by a group of 30 participants on ...
1
vote
2
answers
104
views
How to remove only one column, when there are multiple columns with same in name in dataframe
I'm trying to remove one column even though if there multiple columns with same name in Spark dataframe after join operation performed.
df.printSchema()
--- Id String
--- Name String
--- Country ...
5
votes
5
answers
117
views
Matching pair-wise columns from left to right across rows in one dataframe to another dataframe and adding new columns with matching values
I've got a dataset like this:
df1 <- data.frame(
col1 = c(1, 2, 3),
col2 = c(4, 5, 6),
col3 = c(2, 8, 9),
col4 = c(5, 11, 12),
col5 = c(13, 14, 15),
col6 = c(16, 17, 18),
...