qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,477,214 | <p>I have a pandas dataframe</p>
<pre><code>df_flat = pd.DataFrame({'dim1': ['a', 'a', 'b', 'b'], 'dim2': ['x', 'y', 'x', 'y'], 'val': [2, 4, 6, 8]})
</code></pre>
<p>I want to transform this dataframe, unflatten for want of a better words and transform it to a np ND array such that is looks like:</p>
<pre><code>df_unf... | [
{
"answer_id": 74619623,
"author": "Jib",
"author_id": 20124358,
"author_profile": "https://Stackoverflow.com/users/20124358",
"pm_score": 0,
"selected": false,
"text": "// <o>ISR FIFO Queue \n// <4=> 4 entries <8=> 8 entries <12=> 12 entries <16=> 16 entries\n// <... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17033672/"
] |
74,477,223 | <p>Based on this query: <a href="https://stackoverflow.com/questions/74458691/jmeter-execute-bash-script-using-os-process-sampler">Jmeter - Execute bash script using OS Process Sampler via Windows os</a></p>
<p>I was able to execute bash command on Windows using Os Process sampler.</p>
<p>Now I need to execute using JS... | [
{
"answer_id": 74477329,
"author": "Dmitri T",
"author_id": 2897748,
"author_profile": "https://Stackoverflow.com/users/2897748",
"pm_score": 1,
"selected": false,
"text": " SampleResult.setResponseData(output.toString(), 'UTF-8')\n log.info(output.toString())\n println(output.toString()... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5210482/"
] |
74,477,234 | <p>I have two dataframes:</p>
<pre><code>
set.seed(1)
df1 <- data.frame(k1 = "AFD(1);Acf(2);Vgr7(2);"
,k2 = "ABC(7);BHG(46);TFG(675);")
df2 <- data.frame(site =c("AFD(1);AFD(2);", "Acf(2);", "TFG(677);",
"XX(275);", "ABC(7);&quo... | [
{
"answer_id": 74477864,
"author": "M--",
"author_id": 6461462,
"author_profile": "https://Stackoverflow.com/users/6461462",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndf2 %>% \n mutate(site_list = strsplit(site, \";\")) %>% \n rowwise() %>% \n filter(length(intersec... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477234",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9283607/"
] |
74,477,279 | <p>I've made a TextField that is suppose to update the user's info.</p>
<p>The user has to type either 11 or 14 numbers, so the mask for the textfield has to change if someone types more than 11 numbers. How do I do that?</p>
<p>Masks:</p>
<pre><code>var mascaraCpf = MaskTextInputFormatter(
mask: '###.###.###-##'... | [
{
"answer_id": 74477864,
"author": "M--",
"author_id": 6461462,
"author_profile": "https://Stackoverflow.com/users/6461462",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\n\ndf2 %>% \n mutate(site_list = strsplit(site, \";\")) %>% \n rowwise() %>% \n filter(length(intersec... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531062/"
] |
74,477,282 | <p>Im not sure if my strategy or logic is correct to achieve this, but I have 2 Lists coming from 2 different jsondata mysql quieries, lets say they look like this:</p>
<pre><code>List newsAgency = [{id: 1, name: 9news, image: x}
{id: 2, name: abcnews, image: y}
{id: 3, name: bbc... | [
{
"answer_id": 74478188,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 2,
"selected": true,
"text": " bool checkIsFollowing(Map<String, dynamic> current) {\n for(int index = 0; index < following.length; index+=1) ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477282",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10841432/"
] |
74,477,286 | <p>I have a list in which I have a combination of key and some additional objects, that are not related to each other in other way.</p>
<p>Considering this structure:</p>
<pre><code>record A0(String id, String name, B b, C c) {}
record A(String id, String name, Set<B> bs, Set<C> cs) {}
record B(String id,... | [
{
"answer_id": 74477728,
"author": "user7",
"author_id": 4405757,
"author_profile": "https://Stackoverflow.com/users/4405757",
"pm_score": 2,
"selected": false,
"text": "Collectors.teeing Collectors.teeing Collectors.teeing a0s Map<String, List<A0>> groupById = a0s.stream()\n .col... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20529765/"
] |
74,477,317 | <p>How can i fix this problem in react native version 0.68.2</p>
<pre><code>Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker
</code></pre>
| [
{
"answer_id": 74477379,
"author": "JaRoMaster",
"author_id": 17873944,
"author_profile": "https://Stackoverflow.com/users/17873944",
"pm_score": 1,
"selected": false,
"text": "npm install @react-native-picker/picker --save\n yarn add @react-native-picker/picker\n import {Picker} from '@... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,477,345 | <p>I need to:</p>
<p>localStorage.setItem('user', user);
router.navigate(['/profile']);</p>
<p>The problem is that navigation may occur before storage is set.</p>
<p>Please tell me I don't need to route parameters, create asynchronous classes, callbacks, promisses, or timers for this to work.</p>
| [
{
"answer_id": 74477379,
"author": "JaRoMaster",
"author_id": 17873944,
"author_profile": "https://Stackoverflow.com/users/17873944",
"pm_score": 1,
"selected": false,
"text": "npm install @react-native-picker/picker --save\n yarn add @react-native-picker/picker\n import {Picker} from '@... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2811570/"
] |
74,477,349 | <p>how to get the actual enum values instead of its int values</p>
<p>I have a enum class like below</p>
<pre><code>public enum gender
{
male,
female,
others
}
</code></pre>
<p>and this is my model create method</p>
<pre><code>public async Task<IActionResult> CreateCanditae(Canditateinfo caninfo)
{
... | [
{
"answer_id": 74477580,
"author": "ahmadradwan",
"author_id": 20525121,
"author_profile": "https://Stackoverflow.com/users/20525121",
"pm_score": -1,
"selected": false,
"text": "//just pass it as a string in the database\n\nenum.GetName(typeOf(male),1);\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477349",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531071/"
] |
74,477,362 | <p>I am trying to practice JLabel/JFrame and I am have trouble having my image "key2.png" appear.
I am using Visual Studio Code and I have both my code and the image in the same src folder.</p>
<p>`</p>
<pre><code>import javax.swing.ImageIcon;
import javax.swing.JFrame;
import java.awt.Color;
import javax.swi... | [
{
"answer_id": 74477580,
"author": "ahmadradwan",
"author_id": 20525121,
"author_profile": "https://Stackoverflow.com/users/20525121",
"pm_score": -1,
"selected": false,
"text": "//just pass it as a string in the database\n\nenum.GetName(typeOf(male),1);\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20380700/"
] |
74,477,376 | <p>i have a switch like this</p>
<pre><code>switch (value){
case 1 : {
res = value+"Hirukami Murakmi"
break;
}
case 2 : {
res = value+"Josephine"
break;
}
default: {
res = value+"Mikey n Blaky"
break;
}
</c... | [
{
"answer_id": 74477440,
"author": "Miguel",
"author_id": 13319845,
"author_profile": "https://Stackoverflow.com/users/13319845",
"pm_score": 1,
"selected": false,
"text": "value == 1 switch value value"
},
{
"answer_id": 74477628,
"author": "Mirko Martinovic",
"author_id... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477376",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/609511/"
] |
74,477,391 | <p>I have the following list :</p>
<pre><code>StringTest = ['A','B','C','D']
</code></pre>
<p>The output excepted is :</p>
<pre><code>"'A','B','C','D'"
</code></pre>
<p>but it seems that the '' are perma deleted.</p>
<p>Below is the code I tried :</p>
<pre><code>StringTest = ['A','B','C','D']
StringTest = ',... | [
{
"answer_id": 74477428,
"author": "Marcus",
"author_id": 16528000,
"author_profile": "https://Stackoverflow.com/users/16528000",
"pm_score": 0,
"selected": false,
"text": "StringTest = \"'\"+\"','\".join(StringTest)+\"'\"\n"
},
{
"answer_id": 74477512,
"author": "MrMattBusby... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477391",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11167163/"
] |
74,477,394 | <p>I need to dynamically creates controllers in a ASP.NET Core 6 MVC application.</p>
<p>I found some way to somewhat achieve this but not quite.</p>
<p>I'm able to dynamically add my controller but somehow it reflects only on the second request.</p>
<p>So here is what I do: first I initialize my console app as follows... | [
{
"answer_id": 74477428,
"author": "Marcus",
"author_id": 16528000,
"author_profile": "https://Stackoverflow.com/users/16528000",
"pm_score": 0,
"selected": false,
"text": "StringTest = \"'\"+\"','\".join(StringTest)+\"'\"\n"
},
{
"answer_id": 74477512,
"author": "MrMattBusby... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477394",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6475390/"
] |
74,477,420 | <p>What is the meaning of:
shape=(1, 224, 224, 3)</p>
<p>I mean what are all the values specifying given here for shape?</p>
| [
{
"answer_id": 74477428,
"author": "Marcus",
"author_id": 16528000,
"author_profile": "https://Stackoverflow.com/users/16528000",
"pm_score": 0,
"selected": false,
"text": "StringTest = \"'\"+\"','\".join(StringTest)+\"'\"\n"
},
{
"answer_id": 74477512,
"author": "MrMattBusby... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531084/"
] |
74,477,432 | <p>On Emba's <a href="https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Parameters_(Delphi)" rel="nofollow noreferrer">website</a>, it is stated that an OUT parameter (does not say which type, so I assume it applies to all types) should not be used for input because its value is "discarded".<br />
By di... | [
{
"answer_id": 74477691,
"author": "Andreas Rejbrand",
"author_id": 282848,
"author_profile": "https://Stackoverflow.com/users/282848",
"pm_score": 3,
"selected": true,
"text": "out out"
},
{
"answer_id": 74480435,
"author": "Brian",
"author_id": 685746,
"author_profi... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/46207/"
] |
74,477,513 | <p>Okay so my vs code was normal, then i restarted my laptop without closing the app. I opened it after and almost all the text was white. It isnt the theme, because its always been on Dark+. I dont think i clicked anything major that would cause this. Its really hard to code like this. It is javascript file btw.</p>
... | [
{
"answer_id": 74477691,
"author": "Andreas Rejbrand",
"author_id": 282848,
"author_profile": "https://Stackoverflow.com/users/282848",
"pm_score": 3,
"selected": true,
"text": "out out"
},
{
"answer_id": 74480435,
"author": "Brian",
"author_id": 685746,
"author_profi... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15975299/"
] |
74,477,571 | <p>I'm using postgresql to calculate if different points are inside a specific range (calculated using pythagoras).</p>
<p>The thing is that I would like to get the results ordered by the proximity instead of randomly.</p>
<p>This is my query:</p>
<p><code>select * from point l where ((abs(l.lat*111139 - myPointLat*111... | [
{
"answer_id": 74477688,
"author": "user3738870",
"author_id": 3738870,
"author_profile": "https://Stackoverflow.com/users/3738870",
"pm_score": 3,
"selected": true,
"text": "select Column1, Column2, Column3 from \n(\n select *,\n (\n (abs(l.lat*111139 - myPointLat*111139... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7657219/"
] |
74,477,577 | <p>I'm very new to programming so forgive if this question is a bit stupid. Anyway I'm making this console program that is supposed to calculate total damage per hit after bonus damage is applied.
Example: damage is 100 per hit with 0 initial bonus damage that increases by 50 per hit. The program is supposed to calcula... | [
{
"answer_id": 74477688,
"author": "user3738870",
"author_id": 3738870,
"author_profile": "https://Stackoverflow.com/users/3738870",
"pm_score": 3,
"selected": true,
"text": "select Column1, Column2, Column3 from \n(\n select *,\n (\n (abs(l.lat*111139 - myPointLat*111139... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531181/"
] |
74,477,609 | <p>I have an Excel spreadsheet (Mac OS) with approximately 500 rows and 50+ columns. In all 500 rows, but only half of the columns, are URLs that I am looking to change in bulk.</p>
<p>The domain name and first two category names (paths) are the same. The third path is different but will always contain two letters only... | [
{
"answer_id": 74478673,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "=INDEX(IFNA(REGEXEXTRACT(A1:A, \"\\d+\")*1))\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477609",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531152/"
] |
74,477,641 | <p>I have created a class function called trick_winner(self) within the class Cards which take the value within self.trick1 for example self.trick1 = ('AH' 'JH' 'KH' '2H') and returns the pairs in order from great to least, being that 'A' is the highest value followed by '7', 'J', 'K', 'Q', '6', '5', '4', '3', '2'. But... | [
{
"answer_id": 74478673,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "=INDEX(IFNA(REGEXEXTRACT(A1:A, \"\\d+\")*1))\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20487839/"
] |
74,477,657 | <p>I'm getting 404's from my own site (regardless of browser) as well as the <a href="https://www.bing.com/api/maps/sdk/mapcontrol/isdk" rel="nofollow noreferrer">Bing Maps V8 Interactive SDK</a>. On my site this leads to <code>Uncaught TypeError: Microsoft.Maps.Location is not a constructor</code> errors. I'm guessing... | [
{
"answer_id": 74478673,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "=INDEX(IFNA(REGEXEXTRACT(A1:A, \"\\d+\")*1))\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477657",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5094258/"
] |
74,477,658 | <p>I am writing a userscript for a website to change link targets from "_blank" to "_self".</p>
<p>The website's links are all handled by an EventListener on Click action, which reviews the <code>id</code> attribute for every <code><a></code> element to set the click URL and load it in a new t... | [
{
"answer_id": 74477925,
"author": "Farbod Shabani",
"author_id": 14712252,
"author_profile": "https://Stackoverflow.com/users/14712252",
"pm_score": 0,
"selected": false,
"text": "document.querySelector().target = \"_self\""
},
{
"answer_id": 74478060,
"author": "skara9",
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8698539/"
] |
74,477,661 | <p>In Spring-boot you can use the <code>@Profile(!dev)</code> annotation to exclude beans and classes from being provided when certain profiles are active or not active. Is there an equivalent property for this that can be used inside the application.yml?</p>
| [
{
"answer_id": 74477925,
"author": "Farbod Shabani",
"author_id": 14712252,
"author_profile": "https://Stackoverflow.com/users/14712252",
"pm_score": 0,
"selected": false,
"text": "document.querySelector().target = \"_self\""
},
{
"answer_id": 74478060,
"author": "skara9",
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477661",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1944515/"
] |
74,477,702 | <p>I have array of objects like this,</p>
<pre><code> let data = [
{ id: 1, name: 'a' },
{ id: 1, name: 'b'},
{ id: 1, name: 'a'},
{ id: 2, name: 'a'},
{ id: 2, name: 'b'},
{ id: 3, name: 'c'},
{ id: 3, name: 'c'}
]
</code></pre>
<p>I am trying to ach... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8449651/"
] |
74,477,713 | <p>When creating graphs using, for instance, Python. It is possible to save these figures as vector graphics (SVG, EPS, PDF) and the text is rendered separately. This makes it possible to select or search the text when shown in a pdf file. However, I've tried to render a simple graph using math symbols in addition to t... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477713",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9302146/"
] |
74,477,716 | <p>I have setup the PubSub emulator to run a Python script locally pointing to it.<br />
The emulator is run following the tutorial and it seems to be working fine:</p>
<pre><code>➜ gcloud beta emulators pubsub start --project=tokyo-rain-123 --host-port=127.0.0.1:8085
Executing: /Users/pabloruiz/Downloads/google-cloud-... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477716",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7245020/"
] |
74,477,737 | <p>I have a query that will return all the results for matching row values between two tables.</p>
<p>The tables are <code>Students</code> and <code>StudentRace</code>. The match in the <code>WHERE</code> statement is <code>STUDENTS.ID = STUDENTRACE.STUDENTID</code>.</p>
<p>I am trying to return the column <code>STUDEN... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477737",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531070/"
] |
74,477,751 | <p>i just did a backup, and when i tried to log in the website (/wp-admin) this error appears:</p>
<p>Warning: require(/htdocs/wp-includes/version.php): Failed to open stream: No such file or directory in /htdocs/wp-settings.php on line 33</p>
<p>Fatal error: Uncaught Error: Failed opening required '/htdocs/wp-includes... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20386311/"
] |
74,477,756 | <p>I have a table in Postgres with a column that has distinct alphanumeric values in the pattern 1234P001. However, due to some bug, there are duplicate values in the column, like <code>1234P001</code> appearing thrice.</p>
<p>I want to replace duplicate <code>1234P001</code>'s with <code>1234P002</code>, <code>1234P00... | [
{
"answer_id": 74477822,
"author": "libik",
"author_id": 2854908,
"author_profile": "https://Stackoverflow.com/users/2854908",
"pm_score": 2,
"selected": true,
"text": "let data = [\n { id: 1, name: 'a' },\n { id: 1, name: 'b'},\n { id: 1, name: 'a'},\n { id: ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477756",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531357/"
] |
74,477,765 | <p>Suppose:</p>
<p><code>props.data1 = 'data1'</code> and <code>props.data2 = 'data2'</code></p>
<p>In React, I have the following code:</p>
<pre><code> <div>
{props.data1}&emsp;&emsp;&emsp;&emsp;{props.data2}
</div>
</code></pre>
<p>Which appears like: <code>data1 ... | [
{
"answer_id": 74477900,
"author": "Andy",
"author_id": 1377002,
"author_profile": "https://Stackoverflow.com/users/1377002",
"pm_score": 0,
"selected": false,
"text": "display: flex; div justify-content space-between .container {\n width: 300px;\n border: 1px solid salmon;\n display:... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11199289/"
] |
74,477,796 | <p>I have a list of Future, with each Future completing with a List of values OR with a failure. I am trying to combine these futures in a way that all available values are captured and errors are logged. This is my attempt:</p>
<pre><code>val individualFutures: List[Future[Seq[Element]]] = ....
val allElements: Futur... | [
{
"answer_id": 74478631,
"author": "farmac",
"author_id": 8973587,
"author_profile": "https://Stackoverflow.com/users/8973587",
"pm_score": 3,
"selected": true,
"text": " val allElements: Future[List[Element]] = Future.traverse(individualFutures) {\n _.recover {\n case throwable... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477796",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2444661/"
] |
74,477,817 | <p>I have two dfs(500x100 & 1300x2) and want to create a new column in the first one with which categories that occur on each row. To achieve this I need to fetch the category associated with the column name from second df. There might be several categories on same row.</p>
<pre><code>df = pd.DataFrame({'apple': [0... | [
{
"answer_id": 74478631,
"author": "farmac",
"author_id": 8973587,
"author_profile": "https://Stackoverflow.com/users/8973587",
"pm_score": 3,
"selected": true,
"text": " val allElements: Future[List[Element]] = Future.traverse(individualFutures) {\n _.recover {\n case throwable... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11481935/"
] |
74,477,827 | <p>No precise information on the "resourceType" usable with the YAML pipeline security API:</p>
<p><a href="https://learn.microsoft.com/en-us/rest/api/azure/devops/approvalsandchecks/pipeline-permissions/get?view=azure-devops-rest-7.0&tabs=HTTP" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/... | [
{
"answer_id": 74486045,
"author": "Ziyang Liu-MSFT",
"author_id": 16183552,
"author_profile": "https://Stackoverflow.com/users/16183552",
"pm_score": 1,
"selected": false,
"text": "GET https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}/resources?api-ve... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11379807/"
] |
74,477,869 | <p>Normally all things is good but when I want to add setState() it show overflow. I am making an BMI calculator app and i create a custom button and i think there the problem started.</p>
<pre><code>import 'package:flutter/material.dart';
class RoundIconButton extends StatelessWidget {
RoundIconButton({required thi... | [
{
"answer_id": 74486045,
"author": "Ziyang Liu-MSFT",
"author_id": 16183552,
"author_profile": "https://Stackoverflow.com/users/16183552",
"pm_score": 1,
"selected": false,
"text": "GET https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}/resources?api-ve... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11425074/"
] |
74,477,916 | <p>In the following code, I am trying to use a flag to break out of the loop when true (password is correct) but limit the number of incorrect tries to 3.</p>
<pre><code>def secretagent():
flag=False
while flag==False:
for i in range(3):
password=input("Enter password:")
if password=="... | [
{
"answer_id": 74486045,
"author": "Ziyang Liu-MSFT",
"author_id": 16183552,
"author_profile": "https://Stackoverflow.com/users/16183552",
"pm_score": 1,
"selected": false,
"text": "GET https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}/resources?api-ve... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5074035/"
] |
74,477,930 | <p>Situation: I want a <code>figure</code> that has an <code>img</code> and a <code>figcaption</code> stacked vertically. The <code>figure</code> should be <code>100vh</code> high, the <code>figcaption</code> its natural height (i.e. it could split onto two lines, or the user could change the text size), and the <code>... | [
{
"answer_id": 74524323,
"author": "SerzN1",
"author_id": 2236216,
"author_profile": "https://Stackoverflow.com/users/2236216",
"pm_score": 0,
"selected": false,
"text": "figure {\n margin: 0;\n display: grid;\n flex-direction: column;\n height: 100vh;\n grid-auto-rows: 1f... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477930",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/453783/"
] |
74,477,932 | <p>My original syntax:</p>
<pre><code>select count (*) as Total, description
from ADSAccount
group by Description
</code></pre>
<p>Results:</p>
<pre><code>Total Description
--------------------
20 CloudRoom
100 User
200 Cloud
800 AD
</code></pre>
<p>I'm trying to add a count separation of the "... | [
{
"answer_id": 74524323,
"author": "SerzN1",
"author_id": 2236216,
"author_profile": "https://Stackoverflow.com/users/2236216",
"pm_score": 0,
"selected": false,
"text": "figure {\n margin: 0;\n display: grid;\n flex-direction: column;\n height: 100vh;\n grid-auto-rows: 1f... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477932",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531330/"
] |
74,477,950 | <p>So i'm on this Kata :</p>
<p>`</p>
<pre><code>def first_non_repeating_letter(s)
a = s.chars
a.select! { |char| a.count(char) == 1 }
if a.empty?
("")
else
a.first
end
end
</code></pre>
<p>`</p>
<p>And the only thing i'm missing is :</p>
<p>"As an added challenge, upper- and lowercas... | [
{
"answer_id": 74479016,
"author": "Konstantin Strukov",
"author_id": 8008340,
"author_profile": "https://Stackoverflow.com/users/8008340",
"pm_score": 0,
"selected": false,
"text": "Array#count select count def first_non_repeating_letter(str) \n # We'd like to have a hash where keys a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17007566/"
] |
74,477,961 | <p>I'm writing a React app and I'm struggling with the following problem. I have a table, let's say:</p>
<pre><code><Table>
<Row onClick={() => onRowClick(0)} >
<Cell innerComponent={row.cell[0].Component}/>
<Cell innerComponent={row.cell[1].Component}/>
<Cell innerComponent=... | [
{
"answer_id": 74479016,
"author": "Konstantin Strukov",
"author_id": 8008340,
"author_profile": "https://Stackoverflow.com/users/8008340",
"pm_score": 0,
"selected": false,
"text": "Array#count select count def first_non_repeating_letter(str) \n # We'd like to have a hash where keys a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477961",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3185712/"
] |
74,477,963 | <pre><code>String s = #Section250342,Main,First/HS/12345/Jack/M,200010 10.00 200011 -2.00,
#Section250322,Main,First/HS/12345/Aaron/N,200010 17.00,
#Section250399,Main,First/HS/12345/Jimmy/N,200010 12.00,
#Section251234,Main,First/HS/12345/Jack/M,200011 11.00
</code></pre>
<p>Wherever there is the word /Jack/M in the3 ... | [
{
"answer_id": 74478857,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 2,
"selected": false,
"text": "#Section(\\d+)\\b(?:(?!#Section\\d).)*\\bJack/M,(\\d+\\h+[-+]?\\d+(?:\\.\\d+)?(?:\\s+\\d+\\h+[-+]?\\d+(?:\\.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477963",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19112514/"
] |
74,477,990 | <p>Lets say I have the following code</p>
<pre><code>def top():
counter = 0
for ch in child_1():
print(ch)
counter += 1
if counter > 2:
break
def child_1():
for ch in child_2():
yield ch
print("child_1 logic has finished")
def child_2():
... | [
{
"answer_id": 74478062,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 3,
"selected": true,
"text": "def top():\n counter = 0\n\n iter_1 = child_1()\n for ch in iter_1:\n print(ch)\n counter += 1... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74477990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16597971/"
] |
74,478,015 | <p>I don't like passing multiple repeating arguments, it looks a bit ugly.<br>
how can I refactor the following code?</p>
<pre><code> prev_month_start = Date.today.prev_month.beginning_of_month
prev_month_end = Date.today.prev_month.end_of_month
contacts = contacts.where('
persons.actual_delivery_date >= ?... | [
{
"answer_id": 74478145,
"author": "Will Wilson",
"author_id": 4027469,
"author_profile": "https://Stackoverflow.com/users/4027469",
"pm_score": 1,
"selected": false,
"text": "contacts.where(actual_delivery_date: prev_month_start..prev_month_end).or(expected_shipment_date: prev_month_sta... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1202194/"
] |
74,478,044 | <p>I have a html button that has an id, and I want to send the id of the button, but not as writing the id on the field, I want to send it as <code>this.id</code> but I cannot perform this.</p>
<pre><code><button (click)="changeEnergy(this.id)" id="flash" [ngClass]="!theme?'btnEnergy1':'btnE... | [
{
"answer_id": 74478145,
"author": "Will Wilson",
"author_id": 4027469,
"author_profile": "https://Stackoverflow.com/users/4027469",
"pm_score": 1,
"selected": false,
"text": "contacts.where(actual_delivery_date: prev_month_start..prev_month_end).or(expected_shipment_date: prev_month_sta... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478044",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531528/"
] |
74,478,054 | <p>I have an map projected with OpenLayer 6. I added a button to change to 3d view with ol-cesium.</p>
<p>When the map is in Cesium the fullscreen button of Openlayer is no more visible (which by the way works perfectly in all browsers when I am in standard OL 2d), as it happens with ol-controls. So I added a fullscree... | [
{
"answer_id": 74625431,
"author": "Albert Tinon",
"author_id": 10215367,
"author_profile": "https://Stackoverflow.com/users/10215367",
"pm_score": 0,
"selected": false,
"text": " Ion.defaultAccessToken = cesiumConf.token;\n const viewer = new Viewer('cesiumContainer', {\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478054",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4275508/"
] |
74,478,070 | <p>How do I replace initials with full names (if the initial matches the full name in another column)?</p>
<p>I have data that looks like this:</p>
<pre><code>data <- data.frame(name = c("Acorus americanus", "Nothocalais cuspidata", "Elymus repens", "Elymus hmmmm", "Acoru... | [
{
"answer_id": 74478343,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 3,
"selected": true,
"text": "stringr::str_extract() stringr::str_replace() grep() gsub() library(stringr)\nlibrary(dplyr)\n\ndata %>%\n mutate(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19803766/"
] |
74,478,094 | <p>I'm learning asynchronous programming in JS and I couldn't help but noticed both JS and Raku has some construct for asynchronous programming with the same name, however I'm uncertain to what extent the knowledge from one can transfer to the other. I tried reading <a href="https://docs.raku.org/language/js-nutshell" ... | [
{
"answer_id": 74478514,
"author": "Scimon Proctor",
"author_id": 117284,
"author_profile": "https://Stackoverflow.com/users/117284",
"pm_score": 3,
"selected": false,
"text": "start Promise"
},
{
"answer_id": 74479469,
"author": "Jonathan Worthington",
"author_id": 78325... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478094",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10824322/"
] |
74,478,109 | <p>I have a pandas DataFrame called data_combined with the following structure:</p>
<pre><code> index corr_year corr_5d
0 (DAL, AAL) 0.873762 0.778594
1 (WEC, ED) 0.851578 0.850549
2 (CMS, LNT) 0.850028 0.776143
3 (SWKS, QRVO) 0.850799 0.830603
4 (ALK, DAL) 0.874162 0.744590
</co... | [
{
"answer_id": 74478185,
"author": "crashMOGWAI",
"author_id": 5373105,
"author_profile": "https://Stackoverflow.com/users/5373105",
"pm_score": 0,
"selected": false,
"text": "df[['index1','index2']] = df['index'].str.split(',',expand=True)\n"
},
{
"answer_id": 74478190,
"aut... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478109",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17217956/"
] |
74,478,118 | <p>I am trying to send email internally within work using the <code>smtplib</code> package in Python. I am running this script behind a VPN using the same proxy settings for R and Spyder.
I use the following code which was adapted from <a href="https://mkyong.com/python/how-do-send-email-in-python-via-smtplib/" rel="no... | [
{
"answer_id": 74478378,
"author": "Ovski",
"author_id": 8610346,
"author_profile": "https://Stackoverflow.com/users/8610346",
"pm_score": 1,
"selected": false,
"text": "import smtplib\n\nsmtp_server = 'mail.example.com'\nport = 587 # For starttls\nsender_email = \"from@mail.com\"\nrece... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1901071/"
] |
74,478,132 | <p>I am trying to deploy an application on Azure App Service. I have created a deployment with <code>Python 3.9.7</code>, but my app needs <code>Python 3.9.12</code>. How do I upgrade python's version?</p>
<p>In Azure App Service > Configuration > General Settings > Python minor version, there is no 3.9.12 ava... | [
{
"answer_id": 74487947,
"author": "Hari Krishna",
"author_id": 16630138,
"author_profile": "https://Stackoverflow.com/users/16630138",
"pm_score": 2,
"selected": true,
"text": "az webapp config set ... 3.9.7 3.9.12 3.9.X az webapp config show az webapp config set --resource-group HariTe... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15964159/"
] |
74,478,162 | <p>I'm struggling trying to replicate <a href="https://i.stack.imgur.com/2XaiN.png" rel="nofollow noreferrer">this</a> using Flexbox.
My result looks like <a href="https://i.stack.imgur.com/P1nkW.png" rel="nofollow noreferrer">this</a> for the moment.</p>
<p>Here is the affected code :</p>
<pre><code><div class=&quo... | [
{
"answer_id": 74478266,
"author": "Moussa Bistami",
"author_id": 15628525,
"author_profile": "https://Stackoverflow.com/users/15628525",
"pm_score": 2,
"selected": true,
"text": ".box-container {\n display: flex;\n justify-content: center;\n gap: 25px;\n}\n\n.box {\n height: 160px;\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478162",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19111213/"
] |
74,478,164 | <p>I have done a quite a good research and unable to find a good tutorial for flutter. but here is what I am trying to do.</p>
<p>I have an API call which gets me a lot of data and this data should be shown across multiple screens.</p>
<p>What is the best way to do it using futurebuilder. Ideally, I would like to call ... | [
{
"answer_id": 74478394,
"author": "Gwhyyy",
"author_id": 18670641,
"author_profile": "https://Stackoverflow.com/users/18670641",
"pm_score": 1,
"selected": false,
"text": "class DataClass {\n static List allData = [];\n }\n Future Future futureRequestMethod() async {\n\n// here is the c... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/821887/"
] |
74,478,167 | <p>I have a component which has child components, i want to render these child components with different Ids. They are getting their data from store.The problem is they are rendered but with the same item. how can this be solved?</p>
<p><strong>MultiImages Component</strong></p>
<pre><code>const MultiImages: () => J... | [
{
"answer_id": 74478440,
"author": "André",
"author_id": 13970434,
"author_profile": "https://Stackoverflow.com/users/13970434",
"pm_score": 0,
"selected": false,
"text": "OneImage <>\n <div> \n <img\n src={projectData.picture}\n />\n <div>\n <a>\n {projectData... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478167",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18892774/"
] |
74,478,178 | <p>I have a dataframe like this.</p>
<pre><code> val consecutive
0 0.0001 0.0
1 0.0008 0.0
2 -0.0001 0.0
3 0.0005 0.0
4 0.0008 0.0
5 0.0002 0.0
6 0.0012 0.0
7 0.0012 1.0
8 0.0007 1.0
9 0.0004 1.0
10 0.00... | [
{
"answer_id": 74478933,
"author": "Emma",
"author_id": 2956135,
"author_profile": "https://Stackoverflow.com/users/2956135",
"pm_score": 0,
"selected": false,
"text": "min max df['consecutive'] = df['val'].rolling(5).apply(\n lambda arr: np.all(arr > 0) or np.all(arr < 0), raw=True\n... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478178",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14937012/"
] |
74,478,191 | <p>I have a file named <code>in.txt</code>.</p>
<p><code>in.txt</code></p>
<pre><code>0000fb435 00000326fab123bc2a 20
00003b4c6 0020346afeff655423 26
0000cb341 be3652a156fffcabd5 26
.
.
</code></pre>
<p>i need to check if number <strong>20</strong> is present in file and if present i need the output to look like thi... | [
{
"answer_id": 74478293,
"author": "amirhm",
"author_id": 4529589,
"author_profile": "https://Stackoverflow.com/users/4529589",
"pm_score": 1,
"selected": false,
"text": "with open(\"in.txt\", \"r\") as fin:\n with open(\"out.txt\", \"w\") as fout:\n for line in fin:\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478191",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20273554/"
] |
74,478,195 | <p>I have a List that consists of a boolean and an int. I want to dynamically change the background color between black and white of a TextView for a certain time of (int) numbers. I have treid this approach so far, however, when running the UI sleeps and the textView will only be updated once at the end.</p>
<pre><cod... | [
{
"answer_id": 74483886,
"author": "Aorlinn",
"author_id": 5369727,
"author_profile": "https://Stackoverflow.com/users/5369727",
"pm_score": 0,
"selected": false,
"text": "Thread.Sleep new Handler().post(..) new Handler().postDelayed(..) new Handler().postDelayed(..) new Handler().post(.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478195",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9090704/"
] |
74,478,208 | <p>I get an error("myDiv is null"), when I try to use <code>document.getElementById</code> in Cypress. Can anybody give me a hint? This is my setup:</p>
<pre class="lang-js prettyprint-override"><code>
a.html
...
<div id='myid'>
</div>
...
test.cy.js
function foo()
{
let myDiv = document.ge... | [
{
"answer_id": 74483886,
"author": "Aorlinn",
"author_id": 5369727,
"author_profile": "https://Stackoverflow.com/users/5369727",
"pm_score": 0,
"selected": false,
"text": "Thread.Sleep new Handler().post(..) new Handler().postDelayed(..) new Handler().postDelayed(..) new Handler().post(.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478208",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20111643/"
] |
74,478,231 | <p>I have device with a common register bank that can be accessed through 3 different interfaces, one is the "regular" interface where the register and fields have the normal access restriction (e.g. rw or ro) per the specification, but the other two interfaces are privileged access interfaces where the acces... | [
{
"answer_id": 74483886,
"author": "Aorlinn",
"author_id": 5369727,
"author_profile": "https://Stackoverflow.com/users/5369727",
"pm_score": 0,
"selected": false,
"text": "Thread.Sleep new Handler().post(..) new Handler().postDelayed(..) new Handler().postDelayed(..) new Handler().post(.... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478231",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5876823/"
] |
74,478,232 | <p>Well, I want to do this: <a href="https://grafana.com/docs/grafana/v9.0/basics/timeseries-dimensions/" rel="nofollow noreferrer">https://grafana.com/docs/grafana/v9.0/basics/timeseries-dimensions/</a>, but on Kusto.</p>
<p>The problem is that I don't know where I'm failing, the unique point is that I have the follow... | [
{
"answer_id": 74483242,
"author": "ChrisWue",
"author_id": 220986,
"author_profile": "https://Stackoverflow.com/users/220986",
"pm_score": 1,
"selected": true,
"text": "pivot | evaluate pivot(Id, max(tiempoCiclo))\n"
},
{
"answer_id": 74623668,
"author": "greatvovan",
"a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478232",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3286975/"
] |
74,478,247 | <p>Sorry but I don't know what is happening when I try to run (python3 manage.py makemigrations).</p>
<p>I really don't know what's going on I'm looking for an answer for a while but I can't figure out where the error is:</p>
<pre><code>(paginas) root@janstar:/home/paginas/proyectodedjango# python3 manage.py makemigrat... | [
{
"answer_id": 74483242,
"author": "ChrisWue",
"author_id": 220986,
"author_profile": "https://Stackoverflow.com/users/220986",
"pm_score": 1,
"selected": true,
"text": "pivot | evaluate pivot(Id, max(tiempoCiclo))\n"
},
{
"answer_id": 74623668,
"author": "greatvovan",
"a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478247",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19064485/"
] |
74,478,271 | <p>I need to construct a majority voting (3/5) based on the (int64) elements in the various columns as new column (Voting)</p>
<pre><code> Column1 Column2 Column3 Column4 Column5
0 0 0 6 1 0
1 4 4 6 4 0
2 4 2 2 2 2
3 4 4 4 4 4
4 0 0 0 2 4
5 6 6 6 6 6
6 ... | [
{
"answer_id": 74478443,
"author": "Scott Boston",
"author_id": 6361531,
"author_profile": "https://Stackoverflow.com/users/6361531",
"pm_score": 1,
"selected": false,
"text": "pd.Series.mode def f(x):\n result = x.mode()\n return result[0] if len(result) == 1 else -1\n\ndf['vote']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8064373/"
] |
74,478,286 | <p>In Snowflake, when I create a store proc like so</p>
<pre><code>create procedure stack_overflow_question(select_table varchar)
returns varchar
language sql
as
declare
select_statement varchar;
begin
select_statement := '
SELECT * FROM ' || :select_table || '
';
end;
</code></pre>
<p>Then, later w... | [
{
"answer_id": 74478443,
"author": "Scott Boston",
"author_id": 6361531,
"author_profile": "https://Stackoverflow.com/users/6361531",
"pm_score": 1,
"selected": false,
"text": "pd.Series.mode def f(x):\n result = x.mode()\n return result[0] if len(result) == 1 else -1\n\ndf['vote']... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478286",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11262704/"
] |
74,478,290 | <p>I am trying to make a responsive navbar where part of the items become scrollable when the screen size is reduced. It is something like this:</p>
<p>Large screens:</p>
<pre><code>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ FIXED ITEM + EMPTY SPACE ... | [
{
"answer_id": 74478430,
"author": "SaroGFX",
"author_id": 10546172,
"author_profile": "https://Stackoverflow.com/users/10546172",
"pm_score": 2,
"selected": true,
"text": "white-space: nowrap #navbar {\n background-color: black;\n color: white;\n display: flex;\n flex: 1;\n justify... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478290",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15159198/"
] |
74,478,312 | <p>When would we ever need <code>with</code> in Kotlin if we can already use <code>apply</code>, <code>run</code>, <code>also</code> and <code>let</code>?</p>
<p>Can anyone give me a clear example?</p>
| [
{
"answer_id": 74478430,
"author": "SaroGFX",
"author_id": 10546172,
"author_profile": "https://Stackoverflow.com/users/10546172",
"pm_score": 2,
"selected": true,
"text": "white-space: nowrap #navbar {\n background-color: black;\n color: white;\n display: flex;\n flex: 1;\n justify... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531364/"
] |
74,478,321 | <p>i have a array and i want to select the last index
how can I select it
check the picture of problem: [https://xip.li/z3cePZ]
I am new at PHP I do not know what to do</p>
| [
{
"answer_id": 74478429,
"author": "Momen Shaker",
"author_id": 8894315,
"author_profile": "https://Stackoverflow.com/users/8894315",
"pm_score": 1,
"selected": true,
"text": "<?php\n $arr = array('Ram', 'Shita', 'Geeta');\n echo end($arr);\n?>\n"
}
] | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531560/"
] |
74,478,325 | <p>I would like to use this dataframe</p>
<pre><code>df = pd.DataFrame({'Serial' : ['A1', 'A1', 'A1', 'B1','B1', 'B1'],'Day' : ['01.01.2022', '01.01.2022', '01.01.2021', '01.01.2019', '01.01.2019', '01.01.2020'],'Else' : ['a', 'b', 'c', 'd','e', 'f']})
</code></pre>
<p>to groupby Serial and keep only rows with max(Day)... | [
{
"answer_id": 74478531,
"author": "Naveed",
"author_id": 3494754,
"author_profile": "https://Stackoverflow.com/users/3494754",
"pm_score": 1,
"selected": false,
"text": "# convert the date to the YMD format for finding max\ndf['Day2']=pd.to_datetime(df['Day'], dayfirst=True)\n\n\n# grou... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20184381/"
] |
74,478,332 | <p>I am working on SimpleDatFormat on android.
I tried to convert time from US locale to Swedish. It is working fine in emulator but when I tested it on Samsung devices it is not working. On rest of the devices and versions it is working fine.</p>
<pre><code>SimpleDateFormat inputFormat = new SimpleDateFormat("hh:... | [
{
"answer_id": 74481569,
"author": "Arvind Kumar Avinash",
"author_id": 10819573,
"author_profile": "https://Stackoverflow.com/users/10819573",
"pm_score": 2,
"selected": false,
"text": "SimpleDateFormat Locale new Locale(\"sv\",\"SE\") new Locale(\"sv\") import java.time.LocalDate;\nimp... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478332",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10744522/"
] |
74,478,358 | <p>I'm using a <code>ComboBox</code> to display a list of many items (don't worry, the differences between the items allow a quick selection by <code>AutoComplete</code> :-).</p>
<p>This list is created during the creation of the form (<code>OnCreate</code> event), but so that the form does not freeze while filling, I... | [
{
"answer_id": 74482178,
"author": "Dalija Prasnikar",
"author_id": 4267244,
"author_profile": "https://Stackoverflow.com/users/4267244",
"pm_score": 2,
"selected": true,
"text": "OnCreate OnCreate OnShow Sleep() Synchronize() procedure MainFrm.FormShow(Sender: TObject);\nbegin\n if not... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18279795/"
] |
74,478,395 | <p>I would like to make a 3D scatterplot with different shape symbols to represent different categories of data. In 2D, this is straightforward using the pch argument in the plot function, and I would like to extend it to the rgl plot3d function</p>
<p>However, as discussed in this thread,</p>
<p><a href="https://stack... | [
{
"answer_id": 74482178,
"author": "Dalija Prasnikar",
"author_id": 4267244,
"author_profile": "https://Stackoverflow.com/users/4267244",
"pm_score": 2,
"selected": true,
"text": "OnCreate OnCreate OnShow Sleep() Synchronize() procedure MainFrm.FormShow(Sender: TObject);\nbegin\n if not... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5904690/"
] |
74,478,413 | <p>I have two temporary tables</p>
<pre><code>#tempA
colum1 | colum2 | colum3
-------------+------------+----------+
0001 | NULL |05/10/2022|
0002 | NULL |06/10/2022|
0003 | NULL |07/10/2022|
</code></pre>
<p>#tempB</p>
<pre><code>#tempB
dato1 | dato2 |... | [
{
"answer_id": 74482178,
"author": "Dalija Prasnikar",
"author_id": 4267244,
"author_profile": "https://Stackoverflow.com/users/4267244",
"pm_score": 2,
"selected": true,
"text": "OnCreate OnCreate OnShow Sleep() Synchronize() procedure MainFrm.FormShow(Sender: TObject);\nbegin\n if not... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18293753/"
] |
74,478,439 | <p>I would like to do a regular expression that does not allow more than 1
consecutive spaces.</p>
<p>For example:</p>
<ul>
<li><code>A Bb 7</code> is valid</li>
<li><code>AA O</code> is not valid</li>
<li><code>00 55 </code> is valid</li>
<li><code>A b </code> is not valid</li>
</ul>
| [
{
"answer_id": 74482178,
"author": "Dalija Prasnikar",
"author_id": 4267244,
"author_profile": "https://Stackoverflow.com/users/4267244",
"pm_score": 2,
"selected": true,
"text": "OnCreate OnCreate OnShow Sleep() Synchronize() procedure MainFrm.FormShow(Sender: TObject);\nbegin\n if not... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478439",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/571531/"
] |
74,478,453 | <p>The problem:
I want to search keywords on Amazon and take screenshots. I am using selenium package. However, when I search on amazon.co.uk, it shows delivery address as Unites States. How can I change the "Deliver to Country"?</p>
<p>Below are sample Python code and a sample screenshot.</p>
<pre><code>impo... | [
{
"answer_id": 74482178,
"author": "Dalija Prasnikar",
"author_id": 4267244,
"author_profile": "https://Stackoverflow.com/users/4267244",
"pm_score": 2,
"selected": true,
"text": "OnCreate OnCreate OnShow Sleep() Synchronize() procedure MainFrm.FormShow(Sender: TObject);\nbegin\n if not... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4794400/"
] |
74,478,456 | <p>I have a graph in Excel that I'd like to replicate in R if it's even possible. I am new to R, so any guidance will be appreciated.
So my data looks like this</p>
<p><a href="https://i.stack.imgur.com/48kHh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/48kHh.png" alt="Excel data" /></a></p>
<p>I ... | [
{
"answer_id": 74478653,
"author": "jrcalabrese",
"author_id": 14992857,
"author_profile": "https://Stackoverflow.com/users/14992857",
"pm_score": 2,
"selected": false,
"text": "geom_bar(position = \"dodge\") facet_wrap() library(tidyverse)\ndata(mtcars)\n\n# make a nested dataframe for ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13349539/"
] |
74,478,461 | <p>With a DataFrame like,</p>
<pre class="lang-py prettyprint-override"><code>
import pandas as pd
import numpy as np
df = pd.DataFrame({
'id_1': [33,33,33,33,22,22,88,100],
'id_2': [64,64,64,64,12,12,77,100],
'col_1': [np.nan, 'dog', np.nan, 'kangaroo', np.nan, np.nan, np.nan, np.nan],
'col_2': ['bike... | [
{
"answer_id": 74478653,
"author": "jrcalabrese",
"author_id": 14992857,
"author_profile": "https://Stackoverflow.com/users/14992857",
"pm_score": 2,
"selected": false,
"text": "geom_bar(position = \"dodge\") facet_wrap() library(tidyverse)\ndata(mtcars)\n\n# make a nested dataframe for ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478461",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9576988/"
] |
74,478,463 | <p>I am developing deployment via DBX to Azure Databricks. In this regard I need a data job written in SQL to happen everyday. The job is located in the file <code>data.sql</code>. I know how to do it with a python file. Here I would do the following:</p>
<pre><code>build:
python: "pip"
environments:
defa... | [
{
"answer_id": 74488928,
"author": "renardeinside",
"author_id": 3659303,
"author_profile": "https://Stackoverflow.com/users/3659303",
"pm_score": 2,
"selected": true,
"text": "sql_task sql_statement = ... # code to read from the file\nspark.sql(sql_statement)\n dbt_task"
},
{
"a... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478463",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13219123/"
] |
74,478,521 | <p>I have a column of strings, example below. Each string is a delimited combinations of texts. Each row has different number of texts. I want to create a single column with one text per row based on this column.</p>
<p>FROM:</p>
<pre><code>a;b
x;y;z
p;q;r;s;t
</code></pre>
<p>TO:</p>
<pre><code>a
b
x
y
z
p
q
r
s
t
</c... | [
{
"answer_id": 74478661,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": false,
"text": "=LET(\n rng,A1:A3,\n clm,MAX(BYROW(rng,LAMBDA(a,COUNTA(TEXTSPLIT(a,\";\"))))),\n TOCOL(MAKEARRAY(ROWS(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2935885/"
] |
74,478,535 | <p>To begin with, i have an event Map like this:</p>
<p><code> final Map<DateTime, List<CleanCalendarEvent>>? events;</code></p>
<p>It mapped all my event based on event Date. I want to select some events in certain range of date. I know how to select all the events in one selected date, and put it in a Lis... | [
{
"answer_id": 74478661,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": false,
"text": "=LET(\n rng,A1:A3,\n clm,MAX(BYROW(rng,LAMBDA(a,COUNTA(TEXTSPLIT(a,\";\"))))),\n TOCOL(MAKEARRAY(ROWS(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478535",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15991847/"
] |
74,478,537 | <p>I need to add device names and device IP addresses to the bottom of a text file each time a new device goes live so I can connect via name instead of IP.</p>
<p>My problem is how to check the device I'm adding doesn't already exist, if it does exist then the logic should be to ignore, otherwise it should be added to... | [
{
"answer_id": 74478661,
"author": "Scott Craner",
"author_id": 4851590,
"author_profile": "https://Stackoverflow.com/users/4851590",
"pm_score": 2,
"selected": false,
"text": "=LET(\n rng,A1:A3,\n clm,MAX(BYROW(rng,LAMBDA(a,COUNTA(TEXTSPLIT(a,\";\"))))),\n TOCOL(MAKEARRAY(ROWS(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478537",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531399/"
] |
74,478,550 | <p>Is it possible to determine whether a commit (or md5hash value) is a "merge" from a developer branch to a parent branch? (i.e. master)</p>
<p>Thanks in advance.</p>
| [
{
"answer_id": 74478616,
"author": "Tsvetoslav Tsvetkov",
"author_id": 7357959,
"author_profile": "https://Stackoverflow.com/users/7357959",
"pm_score": 0,
"selected": false,
"text": "git log master"
},
{
"answer_id": 74478660,
"author": "eftshift0",
"author_id": 2437508,... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9531146/"
] |
74,478,572 | <p>In many languages, a function call consists of a slug followed by any number of arguments surrounded by parentheses, like so:</p>
<pre><code>my_function(); // no arguments
my_function(one_argument);
my_function(first_argument,second_argument);
my_function(first_argument,second_argument,third_argument);
</code></pre>... | [
{
"answer_id": 74478611,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 2,
"selected": true,
"text": "\\w+\\([^,)]+,[^,)]+\\);\n \\w+ \\( [^,)]+ , ) , [^,)]+ , ) \\); );"
},
{
"answer_id": 74479507,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478572",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1905056/"
] |
74,478,576 | <pre><code>from typing import NamedTuple, List, Set, Tuple, Dict
class EmbeddingInfoStruct(NamedTuple):
emb_names : list[str] =[]
idx_in_data: list[int] =[]
emb_dim: list[int] =[]
info1 =EmbeddingInfoStruct()
info1.emb_names.append("name1")
info2=EmbeddingInfoStruct()
print("info1 address... | [
{
"answer_id": 74478611,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 2,
"selected": true,
"text": "\\w+\\([^,)]+,[^,)]+\\);\n \\w+ \\( [^,)]+ , ) , [^,)]+ , ) \\); );"
},
{
"answer_id": 74479507,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478576",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1281766/"
] |
74,478,685 | <p>I have a 404 page on my website, but on a nested page (for example test1/test2) static files aren‘t working.</p>
<p>Below is an example for a page with only one part. The css file works normal.</p>
<pre><code>app.get("/:part1", (req, res) => {
res.render("404")
});
</code></pre>
<p>If I go t... | [
{
"answer_id": 74478611,
"author": "The fourth bird",
"author_id": 5424988,
"author_profile": "https://Stackoverflow.com/users/5424988",
"pm_score": 2,
"selected": true,
"text": "\\w+\\([^,)]+,[^,)]+\\);\n \\w+ \\( [^,)]+ , ) , [^,)]+ , ) \\); );"
},
{
"answer_id": 74479507,
... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531413/"
] |
74,478,703 | <p>If I have the following select:</p>
<pre><code><select id="multi_select" multiple>
<option id="1" value="one">One</option>
<option id="2" value="two">Two</option>
<option id="3" value="three">Three&l... | [
{
"answer_id": 74478820,
"author": "epascarello",
"author_id": 14104,
"author_profile": "https://Stackoverflow.com/users/14104",
"pm_score": 3,
"selected": true,
"text": "document.querySelector(\"#multi_select\").addEventListener(\"change\", (evt) => {\n const selectedIds = [...evt.targ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478703",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18178584/"
] |
74,478,758 | <p>For example, I have a string <code>section 213(d)-456(c)</code></p>
<p>How can I split it to get a list of strings:</p>
<p><code>['section', '213', '(', 'd', ')', '-', '456', '(', 'c', ')']</code>.</p>
<p>Thank you!</p>
| [
{
"answer_id": 74478858,
"author": "Barmar",
"author_id": 1491895,
"author_profile": "https://Stackoverflow.com/users/1491895",
"pm_score": 0,
"selected": false,
"text": "re.split(r'([-\\s()])', 'section 213(d)-456(c)')\n ['section', ' ', '213', '(', 'd', ')', '', '-', '456', '(', 'c', '... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478758",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12787553/"
] |
74,478,807 | <p>I am trying to train a multi-class classifier using XGBoost. Data contains 4 independent variables which are ordinal in nature. I want to use these variables as is because they are encoded. The data looks like below</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column name</th>
<th>Val... | [
{
"answer_id": 74479935,
"author": "wavetitan",
"author_id": 19069334,
"author_profile": "https://Stackoverflow.com/users/19069334",
"pm_score": 0,
"selected": false,
"text": "enable_categorical=True gpu_hist approx hist # Create instance of model\nxgb_model = XGBClassifier(tree_method=\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4257964/"
] |
74,478,827 | <p>I am trying to build a dataframe of KML files. I have 52 different files in my dataset, and I have already uploaded them to R using the following code chunk:</p>
<pre><code>#importing data
library(fs)
file_paths = fs::dir_ls("C:/Users/JoaoArbache/Desktop/Mestrado/carbono/dados")
file_contents = list()
for... | [
{
"answer_id": 74479935,
"author": "wavetitan",
"author_id": 19069334,
"author_profile": "https://Stackoverflow.com/users/19069334",
"pm_score": 0,
"selected": false,
"text": "enable_categorical=True gpu_hist approx hist # Create instance of model\nxgb_model = XGBClassifier(tree_method=\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478827",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9927885/"
] |
74,478,837 | <pre><code>int f( int i ) {
printf("called f\n");
if (i < 0) return -i;
else
return 3 * i;
}
</code></pre>
<p>I just want to know what int "f" means.</p>
| [
{
"answer_id": 74479935,
"author": "wavetitan",
"author_id": 19069334,
"author_profile": "https://Stackoverflow.com/users/19069334",
"pm_score": 0,
"selected": false,
"text": "enable_categorical=True gpu_hist approx hist # Create instance of model\nxgb_model = XGBClassifier(tree_method=\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478837",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20442194/"
] |
74,478,872 | <p>Suppose I have a ruby function (func) with named arguments (foo and bar) which I can call by providing either or both arguments like this:</p>
<pre><code>func(foo: "whatever")
func(bar: "whatever")
func(foo: "whatever", bar: "whatever")
</code></pre>
<p>What I need is a way to... | [
{
"answer_id": 74479252,
"author": "steenslag",
"author_id": 290394,
"author_profile": "https://Stackoverflow.com/users/290394",
"pm_score": 3,
"selected": true,
"text": "func(name.to_sym => \"whatever\")\n"
},
{
"answer_id": 74479267,
"author": "Bedol",
"author_id": 4537... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478872",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/805623/"
] |
74,478,875 | <pre><code>SELECT tblSign.sigdate,tblSign.sigtime,tblSign.sigact,tblSign.esignature,tblEmpl.fname,tblEmpl.lname,tblEmpl.location, tblEmpl.estatus,tblLocs.unit,tblLocs.descript,TblLocs.addr1,tblLocs.city,tblLocs.state, tblLocs.zip
FROM tblEmpl
LEFT JOIN tblSign
ON tblSign.eight_id = tblEmpl.eight_id
AND tblSign... | [
{
"answer_id": 74479252,
"author": "steenslag",
"author_id": 290394,
"author_profile": "https://Stackoverflow.com/users/290394",
"pm_score": 3,
"selected": true,
"text": "func(name.to_sym => \"whatever\")\n"
},
{
"answer_id": 74479267,
"author": "Bedol",
"author_id": 4537... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20151702/"
] |
74,478,881 | <p>I've been working on the project. The main goal is to calculate how many words do not contain letters 'B' nor 'C'. Given file has [0;1000] lines. Every line contains 6 columns.</p>
<p>he first two columns contain string with [1; 20] characters. Characters could be letters, numbers, and whitespaces.</p>
<p>3-5 column... | [
{
"answer_id": 74480234,
"author": "Sep Roland",
"author_id": 3144770,
"author_profile": "https://Stackoverflow.com/users/3144770",
"pm_score": 1,
"selected": false,
"text": " mov al, [di]\n cmp al, ' ' *\n je .nextWord *\n cmp al, ';' *\n je .nextWo... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478881",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12652243/"
] |
74,478,884 | <p>I have the following bar chart. here is the javascript options for it:</p>
<pre><code> public chartOptions = {
responsive: true,
maintainAspectRatio: false,
legend: {
display: true,
labels: {
fontColor: "black",
fontSize: 12,
},
},
scales: {
yAxe... | [
{
"answer_id": 74479228,
"author": "user2057925",
"author_id": 2057925,
"author_profile": "https://Stackoverflow.com/users/2057925",
"pm_score": 1,
"selected": false,
"text": " options: {\n ...\n plugins: {\n labels: {\n fontColor: \"black\",\n fontSize: 12,\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478884",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19238266/"
] |
74,478,922 | <p>I am trying to fill <code>NA</code> values of my dataframe. However, I would like to fill them based on the first value of each group.</p>
<pre><code>#> df = data.frame(
group = c(rep("A", 4), rep("B", 4)),
val = c(1, 2, NA, NA, 4, 3, NA, NA)
)
#> df
group val
1 A 1
2 ... | [
{
"answer_id": 74478974,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 3,
"selected": true,
"text": "tidyr::replace_na() dplyr::first() val[[1]] mutate() library(dplyr)\nlibrary(tidyr)\n\ndf %>% \n group_by(group) %... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478922",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5013084/"
] |
74,478,934 | <p>I'm attempting to recreate the following plot styling in R:</p>
<p><a href="https://i.stack.imgur.com/aNWg5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aNWg5.png" alt="enter image description here" /></a></p>
<p>The data doesn't need to map onto the gradient in any meaningful way (though I gue... | [
{
"answer_id": 74479601,
"author": "tjebo",
"author_id": 7941188,
"author_profile": "https://Stackoverflow.com/users/7941188",
"pm_score": 2,
"selected": false,
"text": "approx ggforce::geom_link2 library(tidyverse)\nviews <- tribble(\n ~month, ~views,\n \"Jan\", 374,\n \"Feb\", 500,\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478934",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11983479/"
] |
74,478,947 | <p>I need help figuring out what is going wrong. I wrote a long code to basically reformat a workbook by separating and combining information on separate sheets and then save every sheet separately as a CSV. Here is the beginning of my code:</p>
<pre><code>Sub All()
Dim Bottom As Long
Dim Header As Long
> 'A. CHECK... | [
{
"answer_id": 74479601,
"author": "tjebo",
"author_id": 7941188,
"author_profile": "https://Stackoverflow.com/users/7941188",
"pm_score": 2,
"selected": false,
"text": "approx ggforce::geom_link2 library(tidyverse)\nviews <- tribble(\n ~month, ~views,\n \"Jan\", 374,\n \"Feb\", 500,\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478947",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20531339/"
] |
74,478,948 | <p>I want to deploy an Ubuntu VM on Azure and <strong>automatically</strong> execute a few lines of Bash code right after the VM is deployed. The Bash code is supposed to install PowerShell on the VM. To do this, I use this <a href="https://github.com/fabioklr/pwsh_project/blob/main/main.bicep" rel="nofollow noreferrer... | [
{
"answer_id": 74531629,
"author": "Jahnavi",
"author_id": 19785512,
"author_profile": "https://Stackoverflow.com/users/19785512",
"pm_score": 1,
"selected": false,
"text": "Linux run bicep @description('Name of the Network Security Group')\nparam networkSecurityGroupName string = 'Sec... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478948",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15611217/"
] |
74,478,954 | <p>I'm Trying to fetch values between two timestamps, however the conversion timestamp failing with formatting error.</p>
<pre><code>SELECT
*
FROM
PKV
WHERE
extended_timestamp BETWEEN TO_TIMESTAMP('28-OCT-22 01.10.37.153016000 PM ASIA/CALCUTTA,DD-MON-YY HH24:MI:SS') AND TO_TIMESTAMP(
... | [
{
"answer_id": 74479708,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 2,
"selected": true,
"text": "TO_TIMESTAMP_TZ('28-OCT-22 01.10.37.153016000 PM ASIA/CALCUTTA','DD-MON-YY HH12:MI:SS.FF9 PM TZR', 'NLS_DATE_LAN... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5393402/"
] |
74,478,959 | <p>Is it possible to have graphviz/dot render a node as a circle that is split in the middle horizontally, with a top and bottom text content? Something like a record, but the final shape should be a circle. Currently I'm using <a href="https://graphviz.org/doc/info/shapes.html#record" rel="nofollow noreferrer">Mrecord... | [
{
"answer_id": 74479708,
"author": "p3consulting",
"author_id": 4956336,
"author_profile": "https://Stackoverflow.com/users/4956336",
"pm_score": 2,
"selected": true,
"text": "TO_TIMESTAMP_TZ('28-OCT-22 01.10.37.153016000 PM ASIA/CALCUTTA','DD-MON-YY HH12:MI:SS.FF9 PM TZR', 'NLS_DATE_LAN... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478959",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12681220/"
] |
74,478,967 | <p>I'm looking for some help please with some VBA.</p>
<p>I have the next table</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>header1</th>
</tr>
</thead>
<tbody>
<tr>
<td>000Model Test0Model Val00User0</td>
</tr>
<tr>
<td>Perman000User0Model Name000000</td>
</tr>
<tr>
<td>000Perman0000000... | [
{
"answer_id": 74479408,
"author": "FaneDuru",
"author_id": 2233308,
"author_profile": "https://Stackoverflow.com/users/2233308",
"pm_score": 3,
"selected": true,
"text": "Function replace0(x As String) As String\n Dim matches As Object, mch As Object, arr, k As Long\n ReDim arr(Le... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478967",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17786412/"
] |
74,478,971 | <p>I am reading all files from a directory and storing the file paths of those in that directory in a list using</p>
<pre><code>files = [os.path.abspath(x) for x in os.listdir(r"my directory")]
</code></pre>
<p>Each file in a unique template so the resulting list is something like</p>
<pre><code>[C:\Users\...... | [
{
"answer_id": 74479032,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 1,
"selected": true,
"text": "TEMPLATE_TYPES = \"Blanks\", \"Stocks\", \"May\", \"Coversheet\"\n\nfiles_by_template = {t: [] for t in TEMPLATE_TYPE... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478971",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11956484/"
] |
74,478,978 | <p>I have two CSV files data1.csv and data2.csv the content is something like this (with headers) :</p>
<p>DATA1.csv</p>
<pre><code>Client Name;strnu;addr;fav
MAD01;HDGF;11;V PO
CVOJF01;HHD-;635;V T
LINKO10;DH--JDH;98;V ZZ
</code></pre>
<p>DATA2.csv</p>
<pre><code>USER;BINin;TYPE
XXMAD01XXXHDGFXX;11;N
KJDGD;635;M
CVOJF... | [
{
"answer_id": 74479032,
"author": "Samwise",
"author_id": 3799759,
"author_profile": "https://Stackoverflow.com/users/3799759",
"pm_score": 1,
"selected": true,
"text": "TEMPLATE_TYPES = \"Blanks\", \"Stocks\", \"May\", \"Coversheet\"\n\nfiles_by_template = {t: [] for t in TEMPLATE_TYPE... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478978",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11363473/"
] |
74,478,984 | <p>I'm parsing an XML document, and I need the book title & number value under Score and place them on a 2d list. My current code, can retrieve that data and place it on a list, but the problem is there's some sections in the XML file where the score is not present, and I need to be able to leave an indicator (ex. ... | [
{
"answer_id": 74479200,
"author": "Paweł Pietraszko",
"author_id": 19391219,
"author_profile": "https://Stackoverflow.com/users/19391219",
"pm_score": 2,
"selected": false,
"text": "<bookstore>\n <book>[A-23] Everyday Italian</book>**\n\n <author>Giada De Laurentiis</author>\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74478984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20511050/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.