qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,361,666
<p>I'm working on developing a Python library related to financial modelling.</p> <p>The thing is, a lot of the functions I am creating depend on inputs that are being fed as tables (which I'm treating as Pandas DataFrames) to the functions I am creating. For example, what I do a lot is functions that take a Pandas Dat...
[ { "answer_id": 74361817, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 2, "selected": true, "text": "IllegalStateException LinkedHashMap private static <T> T findBestValue(Stream<T> stream,\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16261029/" ]
74,361,667
<p><strong>I have a Model with Clients:</strong></p> <pre><code>public class Client { [Key] public int id { get; set; } [Required] public string? Hostname { get; set; } public ICollection&lt;Software&gt;? Softwares { get; set; } } </code></pre> <p><strong>And a Model with Software:</strong></p> <p...
[ { "answer_id": 74361817, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 2, "selected": true, "text": "IllegalStateException LinkedHashMap private static <T> T findBestValue(Stream<T> stream,\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20128442/" ]
74,361,679
<p>Is it possible to style the first 2 characters of a message another styling?</p> <pre><code>::first-letter </code></pre> <p>Does not do the trick, also looked <a href="https://stackoverflow.com/questions/35328019/css-display-only-the-first-two-letters-of-a-string">at this question</a>, but this only hides the other ...
[ { "answer_id": 74361812, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 1, "selected": false, "text": "<em></em> const e = document.querySelector('.date');\nconst t = e.innerHTML.split(' ');\n\ne.innerHTML = `<em class=...
2022/11/08
[ "https://Stackoverflow.com/questions/74361679", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4561301/" ]
74,361,684
<p>df:</p> <pre><code> first last email 0 Corey Schafer CoreMSchafer@gmail.com 1 Jane Doe JaneDoe@gmail.com 2 John Doe JohnDoe@gmail.com </code></pre> <p>From a big CSV file, how can I find a specific word like John, without knowing on what column or row he is? If th...
[ { "answer_id": 74361716, "author": "Faisal Nazik", "author_id": 13959139, "author_profile": "https://Stackoverflow.com/users/13959139", "pm_score": 1, "selected": false, "text": "import pandas as pd\n\ndf = pd.read_csv('data.csv')\ndf[df['first'].str.contains('John')] # returns all rows ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361684", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20331697/" ]
74,361,692
<p>Sorry if this is a similar question, I tried to find one that could answer my specific use-case but I only found ones that give exact matches between dataframes.</p> <p>I have 2 pandas data frames of descriptions:</p> <p>df1:</p> <pre><code>Description i had lunch going to the airport buying a suitcase </code></pre>...
[ { "answer_id": 74361917, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "import re\nregex = '|'.join(map(re.escape, df1['Description'].str.split().explode().unique()))\n\nout = df2[df2['Des...
2022/11/08
[ "https://Stackoverflow.com/questions/74361692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8831033/" ]
74,361,698
<p>I am making integration test for my app. I would like to see how cartItems payload my db can write. For that, I have generated cartItems array. Inside that array I have one item called ean. I would like to generate 12 digits random number to ean. But it always return me same number from the array.</p> <p>I have faci...
[ { "answer_id": 74361746, "author": "Konrad", "author_id": 5089567, "author_profile": "https://Stackoverflow.com/users/5089567", "pm_score": 3, "selected": true, "text": "500 map const requestParameters = {\n id: \"530d275e-5de1-466d-86fe-3993a2563fb6\",\n cartItems: new Array(5).fill()...
2022/11/08
[ "https://Stackoverflow.com/questions/74361698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12494839/" ]
74,361,725
<p>I have the following df</p> <pre><code>df &lt;- data.frame(name.name1 = c(1, 1, 1), name.name2 = c(2, 2, 2), name.name3 = c(3, 3, 3)) </code></pre> <p>I'm trying to substitute <code>.</code> by space. When I do</p> <pre><code>colnames(df) &lt;- gsub(&quot;^.$&quot;, &quot; &quot;, c...
[ { "answer_id": 74361784, "author": "cgvoller", "author_id": 17144974, "author_profile": "https://Stackoverflow.com/users/17144974", "pm_score": 2, "selected": true, "text": "colnames(df) <- gsub(\"\\\\.\", \" \", colnames(df))\n \"name name1\" \"name name2\" \"name name3\"\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15108186/" ]
74,361,756
<p>I coded a small Golang program, that takes N arguments (files with resourceQuota requests for K8s) from a GitHub PR, and writes a file with the total amount of CPU and Memory requested that is then exported as GHA output in the next step.</p> <p>can't do <code>go run main.go /path/to/file1 /path/to/file2</code> beca...
[ { "answer_id": 74363377, "author": "Matteo", "author_id": 2270041, "author_profile": "https://Stackoverflow.com/users/2270041", "pm_score": 0, "selected": false, "text": "\nstring=\"/path/to/file1 /path/to/file2\"\necho \\\"$(echo $string | cut -d' ' -f1)\\\" \\\"$(echo $string | cut -d'...
2022/11/08
[ "https://Stackoverflow.com/questions/74361756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7045379/" ]
74,361,781
<p>I must've skipped school that day because I cannot remember how to calculate the middle of a square.</p>
[ { "answer_id": 74361923, "author": "Ali Muhammad", "author_id": 11351501, "author_profile": "https://Stackoverflow.com/users/11351501", "pm_score": 3, "selected": true, "text": "# method-1\ndef square_middle(square):\n x1, y1, x2, y2 = square\n return ((x1 + x2) / 2, (y1 + y2) / 2)...
2022/11/08
[ "https://Stackoverflow.com/questions/74361781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20374112/" ]
74,361,797
<p>I have a table like this:</p> <pre class="lang-none prettyprint-override"><code>a | a_vector | 1 | 710.83;-776.98;-10.86;2013.02;-896.28; | 2 | 3 ; 2 ; 1 | </code></pre> <p>Using PySpark/pandas, how do I dynamically create columns so that first value...
[ { "answer_id": 74361923, "author": "Ali Muhammad", "author_id": 11351501, "author_profile": "https://Stackoverflow.com/users/11351501", "pm_score": 3, "selected": true, "text": "# method-1\ndef square_middle(square):\n x1, y1, x2, y2 = square\n return ((x1 + x2) / 2, (y1 + y2) / 2)...
2022/11/08
[ "https://Stackoverflow.com/questions/74361797", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9390633/" ]
74,361,802
<p>I opened VSCode a few days ago to continue work on a Flutter project, unfortunately, the Flutter and Dart usually take a while to start(2-3 minutes), but this time,the extensions failed to initialize, and I'm left with white colourless code and no access to the tools that come with the extensions(i.e F5 for debug)....
[ { "answer_id": 74361923, "author": "Ali Muhammad", "author_id": 11351501, "author_profile": "https://Stackoverflow.com/users/11351501", "pm_score": 3, "selected": true, "text": "# method-1\ndef square_middle(square):\n x1, y1, x2, y2 = square\n return ((x1 + x2) / 2, (y1 + y2) / 2)...
2022/11/08
[ "https://Stackoverflow.com/questions/74361802", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9671879/" ]
74,361,809
<p>I'm trying to build a React Native application using Expo and <a href="https://github.com/rnmapbox/maps" rel="nofollow noreferrer">rnmapbox/maps</a> module, which includes some custom native code.</p> <p>Up until now, I could build the application without any problems, for Android at least, which is my target platfo...
[ { "answer_id": 74364481, "author": "relasine", "author_id": 10096794, "author_profile": "https://Stackoverflow.com/users/10096794", "pm_score": 1, "selected": false, "text": "eas build" }, { "answer_id": 74390674, "author": "Educorreia", "author_id": 9422823, "author_...
2022/11/08
[ "https://Stackoverflow.com/questions/74361809", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9422823/" ]
74,361,822
<p>I've got an old script from someone that I want to remodel but unfortunately I am not that experienced in PHP. What it does is, it reads article information from a CSV file into an array and then basically posts the output into a HTML table, which can then be saved into a PDF file.</p> <p>One thing I couldn't quite ...
[ { "answer_id": 74362192, "author": "Slava Rozhnev", "author_id": 3399356, "author_profile": "https://Stackoverflow.com/users/3399356", "pm_score": 3, "selected": true, "text": "array_reduce $res = array_reduce(\n $rows,\n function($res, $row) {\n if (isset($res[$...
2022/11/08
[ "https://Stackoverflow.com/questions/74361822", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4350734/" ]
74,361,843
<p>In GLP 10.0.3.</p> <p>On the plan, I have this error:</p> <p><code> Warning: strlen() expects parameter 1 to be string, array given in C:\wamp64\www\glpi\src\PlanningExternalEvent.php on line 160</code></p> <p>My PlanningExternalEvent on line 160 :</p> <pre><code> $is_rrule = strlen($this-&gt;fields['rrule'])...
[ { "answer_id": 74362192, "author": "Slava Rozhnev", "author_id": 3399356, "author_profile": "https://Stackoverflow.com/users/3399356", "pm_score": 3, "selected": true, "text": "array_reduce $res = array_reduce(\n $rows,\n function($res, $row) {\n if (isset($res[$...
2022/11/08
[ "https://Stackoverflow.com/questions/74361843", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450284/" ]
74,361,903
<p><strong>Context</strong></p> <p>I like to use <code>pixi.js</code> for a game I have in mind. Over the years I always used React and <code>next.js</code>.</p> <p>So what I want to do it use pixi.js inside React / Next.</p> <p>There are 2 packages out there that integrate into react fiber to render component like but...
[ { "answer_id": 74362192, "author": "Slava Rozhnev", "author_id": 3399356, "author_profile": "https://Stackoverflow.com/users/3399356", "pm_score": 3, "selected": true, "text": "array_reduce $res = array_reduce(\n $rows,\n function($res, $row) {\n if (isset($res[$...
2022/11/08
[ "https://Stackoverflow.com/questions/74361903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8502436/" ]
74,361,927
<p>I have two .csv files in the same directory with the same number of columns and I want to combine them into one file, but keep just one header from the first file. The file name is always different, only the prefix remains the same:</p> <pre><code>orderline_123456.csv Order_number,Quantity,Price 100,10,25.3 101,15,...
[ { "answer_id": 74362080, "author": "glenn jackman", "author_id": 7552, "author_profile": "https://Stackoverflow.com/users/7552", "pm_score": 2, "selected": false, "text": "awk 'NR == 1 || FNR > 1' file ...\n" }, { "answer_id": 74362761, "author": "JRichardsz", "author_id"...
2022/11/08
[ "https://Stackoverflow.com/questions/74361927", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14320670/" ]
74,361,936
<p><a href="https://i.stack.imgur.com/DqHpG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DqHpG.png" alt="enter image description here" /></a></p> <p>I am trying to calculate if a member shops in January, what proportion shop again in February and what proportion shop again within 3 months. Ultimat...
[ { "answer_id": 74362314, "author": "MT0", "author_id": 1509264, "author_profile": "https://Stackoverflow.com/users/1509264", "pm_score": 0, "selected": false, "text": "SELECT 202101 AS year_month,\n COUNT(CASE WHEN cnt_202101 > 0 THEN 1 END)\n AS members_shopped_202101,\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361936", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450265/" ]
74,361,947
<p>I'm trying to perform a simple addition based on user inputs ( for dimensions of a box in cubic meters.. i want to sum up all the boxes they want to add ).</p> <pre><code> const totalW = [] const cubitMeters = (parseInt(height) * parseInt(width) * parseInt(length) * parseInt(count)) / 1000000 totalW.push(cubitM...
[ { "answer_id": 74362314, "author": "MT0", "author_id": 1509264, "author_profile": "https://Stackoverflow.com/users/1509264", "pm_score": 0, "selected": false, "text": "SELECT 202101 AS year_month,\n COUNT(CASE WHEN cnt_202101 > 0 THEN 1 END)\n AS members_shopped_202101,\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74361947", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18984558/" ]
74,361,951
<p>I need help with python program. I don't know how to make python change at least 1 lowercase letter to uppercase.</p> <pre><code>from random import * import random pin=&quot;&quot; lenght=random.randrange(8,15) for i in range(lenght): pin=pin+chr(randint(97,122)) print(pin) </code></pre>
[ { "answer_id": 74362030, "author": "André", "author_id": 11657650, "author_profile": "https://Stackoverflow.com/users/11657650", "pm_score": -1, "selected": false, "text": "pin=\"asd\"\n\nprint(pin.upper())\n>>>ASD\n pin=pin[:5]+pin[5].upper()+pin[6:]\n" }, { "answer_id": 7436211...
2022/11/08
[ "https://Stackoverflow.com/questions/74361951", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20247401/" ]
74,362,000
<p>I have a text input that is changed by Javascript based on values of other inputs.</p> <p>How do I get Selenium to wait for it to change?</p> <p>I currently have tried both</p> <pre><code>var wait3 = new WebDriverWait(_driver, TimeSpan.FromSeconds(5)).Until(driver =&gt; !driver.FindElement(By.Id(&quot;gbpAmount&quot...
[ { "answer_id": 74362030, "author": "André", "author_id": 11657650, "author_profile": "https://Stackoverflow.com/users/11657650", "pm_score": -1, "selected": false, "text": "pin=\"asd\"\n\nprint(pin.upper())\n>>>ASD\n pin=pin[:5]+pin[5].upper()+pin[6:]\n" }, { "answer_id": 7436211...
2022/11/08
[ "https://Stackoverflow.com/questions/74362000", "https://Stackoverflow.com", "https://Stackoverflow.com/users/965302/" ]
74,362,010
<p>when I try to install any dependence in command prompt get this error message and tried to google but nothing any one to help me please</p> <p><a href="https://i.stack.imgur.com/QgGAH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QgGAH.png" alt="enter image description here" /></a></p> <p>please...
[ { "answer_id": 74362030, "author": "André", "author_id": 11657650, "author_profile": "https://Stackoverflow.com/users/11657650", "pm_score": -1, "selected": false, "text": "pin=\"asd\"\n\nprint(pin.upper())\n>>>ASD\n pin=pin[:5]+pin[5].upper()+pin[6:]\n" }, { "answer_id": 7436211...
2022/11/08
[ "https://Stackoverflow.com/questions/74362010", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450337/" ]
74,362,011
<p>Here's the code in question:</p> <pre class="lang-py prettyprint-override"><code>import pandas as pd df = pd.DataFrame( [ list(range(200)), list(range(200, 400)) ], index=['col_1', 'col_2'] ).transpose() col_1_index = df.columns.get_loc('col_1') col_2_index = df.columns.get_loc('col_2')...
[ { "answer_id": 74363054, "author": "Ben.T", "author_id": 9274732, "author_profile": "https://Stackoverflow.com/users/9274732", "pm_score": 3, "selected": true, "text": "itertuples apply append prev_val2 = df.iloc[1, col_2_index] \nl_val2 = [df.iloc[0, col_2_index], prev_val2] #for the re...
2022/11/08
[ "https://Stackoverflow.com/questions/74362011", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3453901/" ]
74,362,047
<p>Coming from c++ this implementation looks similar to accessing pointers, in python is there more elegant way to do this?</p> <pre><code> if something is not None: return something.x else: return None </code></pre> <p>if the instance itself is not null, then allow accessing its ...
[ { "answer_id": 74362177, "author": "Jasmijn", "author_id": 573255, "author_profile": "https://Stackoverflow.com/users/573255", "pm_score": 0, "selected": false, "text": "something None __bool__ something and something.x something?.x" }, { "answer_id": 74362196, "author": "rv....
2022/11/08
[ "https://Stackoverflow.com/questions/74362047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3930599/" ]
74,362,063
<p>I tried to make a basic calculator by myself. I am complately new and that is why ı don't really know where did ı made the mistake. I can make an addition but still when ı try to make subtraction ıt makes addition again. It ıs my first project and ı need help. I am waiting for your responds :)</p> <pre><code>mathem...
[ { "answer_id": 74362143, "author": "Paul-Marie", "author_id": 9603417, "author_profile": "https://Stackoverflow.com/users/9603417", "pm_score": 1, "selected": false, "text": ":= == == if mathematical_operation:='subtraction':\n if mathematical_operation == 'subtraction':\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362063", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450297/" ]
74,362,072
<p>I am writing a program where the user enters certain substrings, and the code will concatenate them based on overlapping characters. The program works perfectly fine for two strings, however, when I enter three strings, it overlaps two substrings in the string. Here is my code: `</p> <pre><code>y = int(input(&quot;H...
[ { "answer_id": 74362143, "author": "Paul-Marie", "author_id": 9603417, "author_profile": "https://Stackoverflow.com/users/9603417", "pm_score": 1, "selected": false, "text": ":= == == if mathematical_operation:='subtraction':\n if mathematical_operation == 'subtraction':\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18628562/" ]
74,362,106
<p>I just noticed that <code>libclang_rt.asan_osx_dynamic.dylib</code> is in the release build of my macOS app's <code>Contents/Frameworks/</code> directory. I was under the impression that the address sanitizer is a debug feature, so I was surprised to see this. I'm using xcodebuild in a custom build script to generat...
[ { "answer_id": 74362143, "author": "Paul-Marie", "author_id": 9603417, "author_profile": "https://Stackoverflow.com/users/9603417", "pm_score": 1, "selected": false, "text": ":= == == if mathematical_operation:='subtraction':\n if mathematical_operation == 'subtraction':\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362106", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1228525/" ]
74,362,110
<ol> <li>I declare a variable and assign it an integer value, its type is &lt;class 'int&gt;. Shouldn't that be an object?</li> <li>If I define a class and instantiate its object, the type of the object is again class.</li> <li>If I assign a variable to object, the variable is &lt;class 'object&gt; and its type is &lt;...
[ { "answer_id": 74362521, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 2, "selected": false, "text": "type(a) a 3 int int type type type type object object type type object object object type a = 1 1 int a s = Somethin...
2022/11/08
[ "https://Stackoverflow.com/questions/74362110", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15188807/" ]
74,362,124
<p>i'm trying to get user data from AAD using Microsoft Graph API Python SDK. App registration that i have in company tenant has the followiing API permissions: <a href="https://i.stack.imgur.com/Ve2Eh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ve2Eh.png" alt="enter image description here" /></a...
[ { "answer_id": 74387930, "author": "Sridevi", "author_id": 18043665, "author_profile": "https://Stackoverflow.com/users/18043665", "pm_score": 1, "selected": false, "text": "API permissions from azure.common.credentials import ServicePrincipalCredentials\nfrom azure.graphrbac import Grap...
2022/11/08
[ "https://Stackoverflow.com/questions/74362124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8483809/" ]
74,362,135
<p>I have main navigation stack with few child stacks. In <code>OnboardingStack</code> child stack, I set up custom header per screen, but it renders double header (adds one more header with child stack name above custom header intended for that screen). How can I get rid of it? Tried passing <code>screenOptions={{head...
[ { "answer_id": 74387930, "author": "Sridevi", "author_id": 18043665, "author_profile": "https://Stackoverflow.com/users/18043665", "pm_score": 1, "selected": false, "text": "API permissions from azure.common.credentials import ServicePrincipalCredentials\nfrom azure.graphrbac import Grap...
2022/11/08
[ "https://Stackoverflow.com/questions/74362135", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13451224/" ]
74,362,155
<p>I am deploying a simple function on Google Cloud Functions but I am getting a <code>Function cannot be initialized. Error: function terminated. Recommended action: inspect logs for termination reason.</code> error.</p> <p>This is my code:</p> <p>index.js</p> <pre><code>require('dotenv').config(); const crypto = requ...
[ { "answer_id": 74387930, "author": "Sridevi", "author_id": 18043665, "author_profile": "https://Stackoverflow.com/users/18043665", "pm_score": 1, "selected": false, "text": "API permissions from azure.common.credentials import ServicePrincipalCredentials\nfrom azure.graphrbac import Grap...
2022/11/08
[ "https://Stackoverflow.com/questions/74362155", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10034685/" ]
74,362,186
<p>So, importing an implicit member from a created instance works as expected,</p> <pre class="lang-scala prettyprint-override"><code>object Test extends App { class Bag { implicit val ssss: String = &quot;omg&quot; } def call(): Unit = { val bag = new Bag import bag._ val s = implicitly[String...
[ { "answer_id": 74363386, "author": "partlov", "author_id": 759126, "author_profile": "https://Stackoverflow.com/users/759126", "pm_score": 2, "selected": false, "text": "case class TypeTag Person" }, { "answer_id": 74377253, "author": "Dmytro Mitin", "author_id": 5249621,...
2022/11/08
[ "https://Stackoverflow.com/questions/74362186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1151929/" ]
74,362,202
<p>I have table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>user_id</th> <th>days_since_install</th> </tr> </thead> <tbody> <tr> <td>001</td> <td>0</td> </tr> <tr> <td>001</td> <td>1</td> </tr> <tr> <td>001</td> <td>1</td> </tr> </tbody> </table> </div> <p>It is necessary to check if t...
[ { "answer_id": 74362238, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "groupby.any out = (df['days_since_install'].eq(1).groupby(df['user_id']).any()\n .reset_index(name='retention...
2022/11/08
[ "https://Stackoverflow.com/questions/74362202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14085367/" ]
74,362,212
<p>I have a data set like this</p> <pre><code>at_ID journey_id flight is_origin is_destination is_outbound 1 1 1 NA NA TRUE 2 1 2 NA NA TRUE 3 1 3 NA NA FALSE 4 1 4 ...
[ { "answer_id": 74362287, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 1, "selected": false, "text": "is_origin FALSE df %>% \n mutate(is_origin = flight == min(flight) & is_outbound == TRUE,\n is_destin...
2022/11/08
[ "https://Stackoverflow.com/questions/74362212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18679050/" ]
74,362,247
<p>I am trying to build an elevator simulator program and I am getting started with the passenger function. I need to create a thread for each passenger and ask them to input their floor number. I have been able to create the no of passengers (threads) needed and I just need to ask them for their input. But I haven't b...
[ { "answer_id": 74362556, "author": "Lundin", "author_id": 584518, "author_profile": "https://Stackoverflow.com/users/584518", "pm_score": 2, "selected": false, "text": "stdin" }, { "answer_id": 74362654, "author": "Ingo Leonhardt", "author_id": 2470782, "author_profil...
2022/11/08
[ "https://Stackoverflow.com/questions/74362247", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16668751/" ]
74,362,266
<p>Given the following algorithm that returns a value from a predefined enumeration if a random input value <code>u</code> is less than some predefined probability in a (cumulative) <code>prob</code> vector</p> <pre class="lang-r prettyprint-override"><code>val &lt;- 1:5 prob &lt;- c(1/3,1/30,2/15,7/30,4/15) u &lt;- ru...
[ { "answer_id": 74362298, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 2, "selected": false, "text": "cumsum which set.seed(3)\nu <- runif(1)\n#[1] 0.702374\n\nval[which(u < cumsum(prob))[1]]\n#[1] 4\n" }, { "an...
2022/11/08
[ "https://Stackoverflow.com/questions/74362266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19101562/" ]
74,362,276
<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>HOUR</th> <th>Account_id</th> <th>media_id</th> <th>impressions</th> </tr> </thead> <tbody> <tr> <td>2022-11-04 04:00:00 UTC</td> <td>256789</td> <td>35</td> <td>null</td> </tr> <tr> <td>2022-11-04 05:00:00 UTC</td> <td>256789</td> <td>35</td> <td...
[ { "answer_id": 74362515, "author": "Jaytiger", "author_id": 19039920, "author_profile": "https://Stackoverflow.com/users/19039920", "pm_score": 3, "selected": true, "text": "SELECT * EXCEPT(part),\n MAX(impressions) OVER w1 / COUNT(*) OVER W1 AS distributed_impressions \n FROM (\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74362276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9087250/" ]
74,362,301
<p>I have a webpage with some images on it:</p> <pre><code>&lt;head&gt; &lt;style type=&quot;text/css&quot;&gt; #pictureframe { width: 100% background-color: #00000066; } #pictureframe &gt; img { max-height: 90%; position: fixed; t...
[ { "answer_id": 74362515, "author": "Jaytiger", "author_id": 19039920, "author_profile": "https://Stackoverflow.com/users/19039920", "pm_score": 3, "selected": true, "text": "SELECT * EXCEPT(part),\n MAX(impressions) OVER w1 / COUNT(*) OVER W1 AS distributed_impressions \n FROM (\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74362301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/319020/" ]
74,362,351
<p>When I click on the <code>Portfolio</code> rubric, the page is not running...</p> <p><a href="https://i.stack.imgur.com/eNzhO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eNzhO.png" alt="enter image description here" /></a></p> <p>I have an error message in the console which is the following.</...
[ { "answer_id": 74362515, "author": "Jaytiger", "author_id": 19039920, "author_profile": "https://Stackoverflow.com/users/19039920", "pm_score": 3, "selected": true, "text": "SELECT * EXCEPT(part),\n MAX(impressions) OVER w1 / COUNT(*) OVER W1 AS distributed_impressions \n FROM (\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74362351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18216840/" ]
74,362,383
<p>I've added a Lambda Step as the first step in my Sagemaker Pipeline. It processes some data and creates 2 files as part of the output like so:</p> <pre><code>from sagemaker.workflow.lambda_step import LambdaStep, Lambda, LambdaOutput, LambdaOutputTypeEnum # lamb_preprocess = LambdaStep(func_arn=&quot;&quot;) outpu...
[ { "answer_id": 74362515, "author": "Jaytiger", "author_id": 19039920, "author_profile": "https://Stackoverflow.com/users/19039920", "pm_score": 3, "selected": true, "text": "SELECT * EXCEPT(part),\n MAX(impressions) OVER w1 / COUNT(*) OVER W1 AS distributed_impressions \n FROM (\n...
2022/11/08
[ "https://Stackoverflow.com/questions/74362383", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5446891/" ]
74,362,386
<p>how are you?</p> <p>I have a distance matrix and need to perform a filter based on another list before applying some functions.</p> <p>The matrix has 10 elements that represent machines and the distances between them, I need to filter this list by getting only the distances between some chosen machines.</p> <pre><co...
[ { "answer_id": 74362442, "author": "chc", "author_id": 12932447, "author_profile": "https://Stackoverflow.com/users/12932447", "pm_score": 1, "selected": false, "text": "final_matrix = []\n\nfor i in filter_list:\n to_append = []\n for j in filter_list:\n to_append.append(ma...
2022/11/08
[ "https://Stackoverflow.com/questions/74362386", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19023621/" ]
74,362,396
<p>After upgrading my Windows OS, I got an error while installing the node-sass package.</p> <p>As shown in the output that I provided, the rest of the packages are installed successfully.</p> <p>To fix this error, I added the path of python and node to environment variable names, installed visual build tools, tried di...
[ { "answer_id": 74362442, "author": "chc", "author_id": 12932447, "author_profile": "https://Stackoverflow.com/users/12932447", "pm_score": 1, "selected": false, "text": "final_matrix = []\n\nfor i in filter_list:\n to_append = []\n for j in filter_list:\n to_append.append(ma...
2022/11/08
[ "https://Stackoverflow.com/questions/74362396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16431648/" ]
74,362,408
<p>I want to form a new list of dictionaries by random choosing dictionary from existing list of dictionary based on same key name.</p> <pre><code>existing_list = [{'topic1': 'question1'}, {'topic2': 'question2'}, {'topic3': 'question3'}, {'topic2': 'question4'}, {'topic2': 'question5'}, {'topic1': 'question2'}, {'topi...
[ { "answer_id": 74362442, "author": "chc", "author_id": 12932447, "author_profile": "https://Stackoverflow.com/users/12932447", "pm_score": 1, "selected": false, "text": "final_matrix = []\n\nfor i in filter_list:\n to_append = []\n for j in filter_list:\n to_append.append(ma...
2022/11/08
[ "https://Stackoverflow.com/questions/74362408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1980208/" ]
74,362,409
<p>I have a long list of JSON data, with repeats of contents similar to followings.</p> <p>Due to the original JSON file is too long, I will just shared the hyperlinks here. This is a result generated from a database called RegulomeDB.</p> <p><a href="https://regulomedb.org/regulome-search/?regions=chr16:28539847-28539...
[ { "answer_id": 74373547, "author": "SaSkY", "author_id": 18104248, "author_profile": "https://Stackoverflow.com/users/18104248", "pm_score": 1, "selected": true, "text": "cat file.json | grep -iE '\"method\":\\s*\"eQTLs\"[^}]*' -o | cut -d ',' -f 1,5 | sed -r 's/\"|:|method|value//gi' | ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13838020/" ]
74,362,411
<p>I want to take city name as input and on button click it should call specific url <a href="https://www.google.com/maps/search/tourist+places+in+" rel="nofollow noreferrer">https://www.google.com/maps/search/tourist+places+in+</a> <strong>mumbai</strong> with ending url with input value in react. It should open the u...
[ { "answer_id": 74373547, "author": "SaSkY", "author_id": 18104248, "author_profile": "https://Stackoverflow.com/users/18104248", "pm_score": 1, "selected": true, "text": "cat file.json | grep -iE '\"method\":\\s*\"eQTLs\"[^}]*' -o | cut -d ',' -f 1,5 | sed -r 's/\"|:|method|value//gi' | ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362411", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16966403/" ]
74,362,455
<p>I am trying to integrate <code>NavigationStack</code> in my <code>SwiftUI</code> app, I have four views <code>CealUIApp</code>, <code>OnBoardingView</code>, <code>UserTypeView</code> and <code>RegisterView</code>. I want to navigate from <code>OnBoardingView</code> to <code>UserTypeView</code> when user presses a bu...
[ { "answer_id": 74362840, "author": "lorem ipsum", "author_id": 12738750, "author_profile": "https://Stackoverflow.com/users/12738750", "pm_score": 2, "selected": true, "text": "Only root-level navigation destinations are effective for a navigation stack with a homogeneous path Navigation...
2022/11/08
[ "https://Stackoverflow.com/questions/74362455", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9552485/" ]
74,362,492
<p>I have a numpy array that has a shape of <code>(500, 151296)</code>. Below is the array format</p> <p>array:</p> <pre><code>array([[-0.18510018, 0.13180602, 0.32903048, ..., 0.39744213, -0.01461623, 0.06420607], [-0.14988784, 0.12030973, 0.34801325, ..., 0.36962894, 0.04133283, 0.0443...
[ { "answer_id": 74362793, "author": "paime", "author_id": 13636407, "author_profile": "https://Stackoverflow.com/users/13636407", "pm_score": 2, "selected": true, "text": "array for i in range(len(stopwords)):\n array = np.append(array[i], str(stopwords[i]))\n# ^^^^^ ^^^^...
2022/11/08
[ "https://Stackoverflow.com/questions/74362492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9798210/" ]
74,362,498
<p>The UI to send emails from Salesforce (including Subject, Body, etc.) is not displaying: <a href="https://i.stack.imgur.com/o67r5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o67r5.png" alt="Tab to send email from the Activity" /></a></p> <p>This Activity section is visible on the right of a Co...
[ { "answer_id": 74362793, "author": "paime", "author_id": 13636407, "author_profile": "https://Stackoverflow.com/users/13636407", "pm_score": 2, "selected": true, "text": "array for i in range(len(stopwords)):\n array = np.append(array[i], str(stopwords[i]))\n# ^^^^^ ^^^^...
2022/11/08
[ "https://Stackoverflow.com/questions/74362498", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12031499/" ]
74,362,513
<p>i have a function to append a list, something like this:</p> <pre><code>def append_func(element): if xxxx: new_list.append(element) else: [] </code></pre> <p>I have another function that uses <code>append_func()</code>:</p> <pre><code>def second_func(item): for i in item: append_func(i...
[ { "answer_id": 74362557, "author": "George Rey", "author_id": 1701405, "author_profile": "https://Stackoverflow.com/users/1701405", "pm_score": 1, "selected": false, "text": "def append_func(element):\n if xxxx:\n new_list.append(element)\n else:\n []\n return new_...
2022/11/08
[ "https://Stackoverflow.com/questions/74362513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10581944/" ]
74,362,547
<p>When searching a directory for files of a specific name driven by the <code>_fileToSearch</code> parameter, I then create a custom list of <code>DrawingFound</code> and store the files path in a string called <code>FileDirectory</code>.</p> <p>I then require on a button click <code>OpenDrawing()</code> for the file ...
[ { "answer_id": 74362618, "author": "George Rey", "author_id": 1701405, "author_profile": "https://Stackoverflow.com/users/1701405", "pm_score": 0, "selected": false, "text": "one \"two\" three \\ foo = \"one \\\"two\\\" three\"\n" }, { "answer_id": 74364619, "author": "Shadyj...
2022/11/08
[ "https://Stackoverflow.com/questions/74362547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9098538/" ]
74,362,563
<p>I am using bootstrap for creating a tab list like below one: <a href="https://i.stack.imgur.com/KEy7F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEy7F.png" alt="enter image description here" /></a></p> <p>The problem is that when I click on &quot;Profile&quot; or Contact, it changes nothing. ...
[ { "answer_id": 74362796, "author": "Paul Viorel", "author_id": 16815116, "author_profile": "https://Stackoverflow.com/users/16815116", "pm_score": 0, "selected": false, "text": "$('#myTab a').on('click', function (e) {\n e.preventDefault()\n $(this).tab('show')\n})\n" }, { "ans...
2022/11/08
[ "https://Stackoverflow.com/questions/74362563", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16815116/" ]
74,362,576
<p>I'm trying to make dropdownbutton using Getx in flutter However, it doesn't work. Even if I choose a value, the value does not been selected.</p> <pre><code> class BecomePlayerPage2 extends GetView&lt;BecomePlayerController&gt; { const BecomePlayerPage2 ({Key? key}) : super(key: key); @override Widget build(B...
[ { "answer_id": 74362796, "author": "Paul Viorel", "author_id": 16815116, "author_profile": "https://Stackoverflow.com/users/16815116", "pm_score": 0, "selected": false, "text": "$('#myTab a').on('click', function (e) {\n e.preventDefault()\n $(this).tab('show')\n})\n" }, { "ans...
2022/11/08
[ "https://Stackoverflow.com/questions/74362576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19358943/" ]
74,362,600
<p>Trying to get the number <code>811.00</code> when its placed under the word <code>Size</code>.</p> <p>I know how to get the number when its NEAR some word, like &quot;Jerusalem&quot; in this case.<br /> But here I'm trying to get the number when it's <em>under</em> the word <code>Size</code>.</p> <pre><code>Property...
[ { "answer_id": 74552045, "author": "njk18", "author_id": 17160016, "author_profile": "https://Stackoverflow.com/users/17160016", "pm_score": 2, "selected": false, "text": "(?<=(\\w\\s){1}?)(\\d+.\\d+)\n" }, { "answer_id": 74555313, "author": "bobble bubble", "author_id": ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362600", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14877266/" ]
74,362,606
<p>I have a number of pages in my app wrapped in <code>Offstage</code> widgets. Each page makes use of the provider package to render based on state updates (e.g. the user does something, we make a network call and display the result).</p> <p>As the pages are wrapped in <code>Offstage</code> widgets, the <code>build()<...
[ { "answer_id": 74362876, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 0, "selected": false, "text": "Offstage import 'package:flutter/material.dart';\n\nvoid main() => runApp(MyApp());\n\nclass MyApp extends StatefulWidge...
2022/11/08
[ "https://Stackoverflow.com/questions/74362606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/639441/" ]
74,362,629
<p>I'm running API tests using GitHub Actions and I want to upload to the report generated by Mochawesome to Google Cloud so I can see failures clearly without digging through CI logs. I have the upload part working but when I view the html file on Google Cloud it doesn't load, I just get a blank white page. I'm upload...
[ { "answer_id": 74362876, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 0, "selected": false, "text": "Offstage import 'package:flutter/material.dart';\n\nvoid main() => runApp(MyApp());\n\nclass MyApp extends StatefulWidge...
2022/11/08
[ "https://Stackoverflow.com/questions/74362629", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4405472/" ]
74,362,630
<p>Method not found: 'Void CoreTypeMappingParameters..ctor(System.Type, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer, System.Func`3&lt;Microsoft.EntityFrameworkCore.Metadata.IP...
[ { "answer_id": 74410590, "author": "Samisa", "author_id": 918001, "author_profile": "https://Stackoverflow.com/users/918001", "pm_score": 0, "selected": false, "text": "Install-Package Microsoft.EntityFrameworkCore.Design -Version 6.0.10" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74362630", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450754/" ]
74,362,637
<p>The objective was to append a node within the node <code>testcases</code> using the <code>lxml</code> append function.</p> <p>However, the compiler return the following error</p> <blockquote> <p>AttributeError: 'NoneType' object has no attribute 'append'</p> </blockquote> <p>But, append the new node into the super n...
[ { "answer_id": 74363096, "author": "LMC", "author_id": 2834978, "author_profile": "https://Stackoverflow.com/users/2834978", "pm_score": 1, "selected": false, "text": "find() testcases question testcases contentnav = doc.find(\"question\").find(\"testcases\")\n contentnav = doc.xpath(\"/...
2022/11/08
[ "https://Stackoverflow.com/questions/74362637", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6446053/" ]
74,362,647
<p>I am building a react app and I want to know what is the best way to fill a div with dots, to be more specific how to fill a div entirely with small rounded divs, but no matter the width of the screen the div is always full with small rounded divs.</p> <p>The end result should look like this :</p> <p><a href="https:...
[ { "answer_id": 74363009, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": 3, "selected": true, "text": ".dots {\n width: 100%;\n height: 50vh;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org...
2022/11/08
[ "https://Stackoverflow.com/questions/74362647", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13886184/" ]
74,362,662
<p>i use a script to take all my files from drive to a google spreadsheet with name, url...</p> <p>My problem is there are a lot of files and the script run during ~30 min and exceed during time permission for apps script.</p> <p>How can i speed this script please ?</p> <pre><code>function listFilesAndFolders() { var...
[ { "answer_id": 74363009, "author": "Adam", "author_id": 12571484, "author_profile": "https://Stackoverflow.com/users/12571484", "pm_score": 3, "selected": true, "text": ".dots {\n width: 100%;\n height: 50vh;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org...
2022/11/08
[ "https://Stackoverflow.com/questions/74362662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20214066/" ]
74,362,673
<p>Here is a simple example of what I'm trying to achieve: Assume we are given a <code>std::vector&lt;std::byte&gt; rgb_data</code> containing RGB color values and a <code>struct rgb{ double r, g, b; };</code>. I would to create a <code>std::vector&lt;rgb&gt; transformed_rgb_data</code> containing these RGB color value...
[ { "answer_id": 74363046, "author": "Jack", "author_id": 121747, "author_profile": "https://Stackoverflow.com/users/121747", "pm_score": 2, "selected": false, "text": "std::views::adjacent_view std::views::adjacent_transform_view" }, { "answer_id": 74363166, "author": "Ayxan H...
2022/11/08
[ "https://Stackoverflow.com/questions/74362673", "https://Stackoverflow.com", "https://Stackoverflow.com/users/547231/" ]
74,362,692
<p>I'm trying to check if a parameter that was received is 0, but as I'm doing this alot I would like to have a faster way to check if it is 0 and not to have to do an entire if check every time.</p> <p>Exactly like the Guard method allow me to do that with string. This Guard method: using CommunityToolkit.Diagnostics;...
[ { "answer_id": 74362953, "author": "Tim Schmelter", "author_id": 284240, "author_profile": "https://Stackoverflow.com/users/284240", "pm_score": 0, "selected": false, "text": "Guard.IsNotDefault Guard.IsNotDefault(myage);\n" } ]
2022/11/08
[ "https://Stackoverflow.com/questions/74362692", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20204855/" ]
74,362,694
<p>I have this table:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: center;">group</th> <th style="text-align: center;">May 1990</th> <th style="text-align: center;">Jun 1990</th> <th style="text-align: center;">Jul 1990</th> </tr> </thead> <tbody> <tr> <td style="text-...
[ { "answer_id": 74362844, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 2, "selected": true, "text": "across library(dplyr)\ndf %>% \n mutate(across(where(is.numeric), ~ .x / .x[group == \"Total\"]))\n\n group may_199...
2022/11/08
[ "https://Stackoverflow.com/questions/74362694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9076548/" ]
74,362,709
<p>I'm using PDFLib (this library <a href="https://www.pdflib.com/" rel="nofollow noreferrer">https://www.pdflib.com/</a>). I'm on PHP but this library exists also for other languages, so the question is not specific for PHP.</p> <p>I would like to print on the PDF name value pairs. Something like this: <a href="https:...
[ { "answer_id": 74363739, "author": "Rainer", "author_id": 2862406, "author_profile": "https://Stackoverflow.com/users/2862406", "pm_score": 2, "selected": false, "text": "info_textline() fit_textline() info_textflow() get_option(\"texty\") $label_optlist = \"fontname={Helvetica} fontsize...
2022/11/08
[ "https://Stackoverflow.com/questions/74362709", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20442826/" ]
74,362,777
<p>I am writing a Modelica code for an electrolyser cell and I want to build a Polarization curve as shown in the picture bellow</p> <p><a href="https://i.stack.imgur.com/jWWZw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jWWZw.jpg" alt="Polariszation curve of electrolysis" /></a></p> <p>So the in...
[ { "answer_id": 74363739, "author": "Rainer", "author_id": 2862406, "author_profile": "https://Stackoverflow.com/users/2862406", "pm_score": 2, "selected": false, "text": "info_textline() fit_textline() info_textflow() get_option(\"texty\") $label_optlist = \"fontname={Helvetica} fontsize...
2022/11/08
[ "https://Stackoverflow.com/questions/74362777", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450832/" ]
74,362,778
<p>I thought I know the shell, but I got bitten with unexpected behavior.</p> <p>Consider this code:</p> <pre class="lang-bash prettyprint-override"><code>#!/bin/bash foo() { if false then echo success else return fi } foo || echo failure </code></pre> <p>Now at first glance one would t...
[ { "answer_id": 74363003, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 2, "selected": false, "text": "if return return return false return if if if elif if if elif" }, { "answer_id": 74363342, "author": "Ka...
2022/11/08
[ "https://Stackoverflow.com/questions/74362778", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6607497/" ]
74,362,810
<p>I am trying to create an excel formula if comma-separated values in the cell doesn't present in the allowed values list then I need to highlight it.</p> <p>Something like this</p> <p><a href="https://i.stack.imgur.com/9981Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9981Q.png" alt="enter imag...
[ { "answer_id": 74363106, "author": "JvdV", "author_id": 9758194, "author_profile": "https://Stackoverflow.com/users/9758194", "pm_score": 3, "selected": true, "text": "=$B$3:$C$7 =ISERROR(SUM(MATCH(TEXTSPLIT(B3,\",\"),H$4:H$7,0)))\n TEXTSPLIT() FILTERXML() =ISERROR(SUM(MATCH(FILTERXML(\"...
2022/11/08
[ "https://Stackoverflow.com/questions/74362810", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14118943/" ]
74,362,823
<p>I have three tables: <code>Customer</code>, <code>CustomerOrder</code>, and <code>OrderStatus</code>.</p> <p>My database is filled with the following info:</p> <p><strong>Customer</strong></p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>name</th> </tr> </thead> <tbody> <tr> <...
[ { "answer_id": 74363005, "author": "Netzer", "author_id": 5500118, "author_profile": "https://Stackoverflow.com/users/5500118", "pm_score": 2, "selected": true, "text": "max(CustomerOrder.Id) group by CustomerOrder.Customer" }, { "answer_id": 74363359, "author": "tomasz", ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450598/" ]
74,362,837
<p>I've been trying to get a response from a REST API through Axios, I've tried setting the headers up, specifically the Access-Control-Allow-Origin header as stated in the error message, which seems to be the main problem, because even as I insert the required header, it still doesn't acknowledge the header.</p> <pre>...
[ { "answer_id": 74363005, "author": "Netzer", "author_id": 5500118, "author_profile": "https://Stackoverflow.com/users/5500118", "pm_score": 2, "selected": true, "text": "max(CustomerOrder.Id) group by CustomerOrder.Customer" }, { "answer_id": 74363359, "author": "tomasz", ...
2022/11/08
[ "https://Stackoverflow.com/questions/74362837", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14096802/" ]
74,362,872
<p>How do you combine two objects like this?</p> <pre><code>const target = { year1 : {}, year2: {somevalue2...}}; const source = { year1 : {somevalue1...}, year2: {} }; </code></pre> <p>expected Input:</p> <pre><code>{ year1 : {somevalue1}, year2 : {somevalue2} } </code></pre> <p>Thank you!</p>
[ { "answer_id": 74362995, "author": "ncpa0cpl", "author_id": 8907391, "author_profile": "https://Stackoverflow.com/users/8907391", "pm_score": -1, "selected": false, "text": "target source source const combine = (target, source) => {\n for(const [key, value] of Object.entries(source)) {\...
2022/11/08
[ "https://Stackoverflow.com/questions/74362872", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6749183/" ]
74,362,938
<p>Is there a way to toggle the class &quot;.first-active&quot; on the parent div &quot;.ProductItem-gallery-slides&quot; when the first &quot;.ProductItem-gallery-slides-item&quot; child has its active &quot;.selected&quot; class?</p> <p>Also, toggle the class &quot;.last-active&quot; on the parent div &quot;.ProductI...
[ { "answer_id": 74362995, "author": "ncpa0cpl", "author_id": 8907391, "author_profile": "https://Stackoverflow.com/users/8907391", "pm_score": -1, "selected": false, "text": "target source source const combine = (target, source) => {\n for(const [key, value] of Object.entries(source)) {\...
2022/11/08
[ "https://Stackoverflow.com/questions/74362938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14926793/" ]
74,362,959
<p>I want to get the button printed out and whenever it is clicked to change the property searching game to the opposite (if its false - true) and print out the other button. Right now not even a button appears (if its in the jsx code after the return it prints the button but doesn't change it on click). Any ideas how ...
[ { "answer_id": 74363217, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 2, "selected": true, "text": "{isSearchingForGame()} searchingGame useState return text const { useState, useEffect } = React; \n\nfunction App() {...
2022/11/08
[ "https://Stackoverflow.com/questions/74362959", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20045530/" ]
74,362,961
<p><strong>Use case :</strong></p> <p>This is a Cypress E2E test coded with JS and I'm trying to apply a regex filter to this array (more than 100 values) to be able to ignore everything before <code>/flux/sitemaps/</code> and catches only the .xml file names. my aim is to be able to compare pre-production and producti...
[ { "answer_id": 74363217, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 2, "selected": true, "text": "{isSearchingForGame()} searchingGame useState return text const { useState, useEffect } = React; \n\nfunction App() {...
2022/11/08
[ "https://Stackoverflow.com/questions/74362961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3095223/" ]
74,362,983
<p>we know the standard <code>Exception Handling</code> in python:</p> <pre><code>def fun(): a = 1 x = 5 ...... ...... try: print(x) except: print(&quot;An exception occurred %d&quot;, a) ...... ...... return x+a </code></pre> <p>I want to achieve that</p> <ol> <li>if <co...
[ { "answer_id": 74363029, "author": "George Rey", "author_id": 1701405, "author_profile": "https://Stackoverflow.com/users/1701405", "pm_score": 2, "selected": false, "text": "retry retry pip install retry\n from retry import retry\n\n@retry(ZeroDivisionError, tries=4, delay=2, backoff=2)...
2022/11/08
[ "https://Stackoverflow.com/questions/74362983", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6703592/" ]
74,362,996
<p>I have a &quot;main&quot; powershell script that executes multiple scripts that install apps on a VM. I'm trying to implement the error control on the main script, meaning:</p> <p><strong>If one of the scripts that installs the apps fails, the rest of the scripts aren't executed.</strong></p> <p>Here is my main scri...
[ { "answer_id": 74363190, "author": "Sam", "author_id": 15266912, "author_profile": "https://Stackoverflow.com/users/15266912", "pm_score": 1, "selected": false, "text": "$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'\n\ntry{\n powershell.exe -ExecutionPolicy Unrestric...
2022/11/08
[ "https://Stackoverflow.com/questions/74362996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15266912/" ]
74,363,016
<p>I need to convert a yyyy/dd varchar type data( ex: 2021/03) to a monthly sort of date. (Ex: 2021/01, 2021/02, 2021/03). So, i need to convert the quarterly format to a monthly format in snowflake. Can we do this?</p> <p>I tried many things but didn't get the expected results</p>
[ { "answer_id": 74363190, "author": "Sam", "author_id": 15266912, "author_profile": "https://Stackoverflow.com/users/15266912", "pm_score": 1, "selected": false, "text": "$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'\n\ntry{\n powershell.exe -ExecutionPolicy Unrestric...
2022/11/08
[ "https://Stackoverflow.com/questions/74363016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20451054/" ]
74,363,040
<p><strong>Update 01/12/2022</strong></p> <p>With triplee's helpful suggestions, I resolved it to take both files &amp; directories by adding a comma in between f and d, the final code now looks like this:</p> <pre><code>while read -r old new; do echo &quot;replacing ${old} by ${new}&quot; &gt;&amp;2 find '/pat...
[ { "answer_id": 74363190, "author": "Sam", "author_id": 15266912, "author_profile": "https://Stackoverflow.com/users/15266912", "pm_score": 1, "selected": false, "text": "$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'\n\ntry{\n powershell.exe -ExecutionPolicy Unrestric...
2022/11/08
[ "https://Stackoverflow.com/questions/74363040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20450802/" ]
74,363,057
<p>I have a dataset that includes a binary variable (0 vs 1) across time. I want to plot the occurrence of 1 across time. The idea is to see during which period the 1 occurs more often. Here is an example dataset:</p> <pre><code>set.seed(123) dd &lt;- data.frame(id = c(rep(1,100), rep(2,80), rep(3,90)), ...
[ { "answer_id": 74363190, "author": "Sam", "author_id": 15266912, "author_profile": "https://Stackoverflow.com/users/15266912", "pm_score": 1, "selected": false, "text": "$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'\n\ntry{\n powershell.exe -ExecutionPolicy Unrestric...
2022/11/08
[ "https://Stackoverflow.com/questions/74363057", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7989204/" ]
74,363,061
<p>I am working on pagination which works with the following logic:</p> <pre><code> if (currentPage &gt; 5 &amp;&amp; currentPage &lt; 11) pages = [6, 7, 8, 9, 10]; if (currentPage &gt; 10 &amp;&amp; currentPage &lt; 16) pages = [11, 12, 13, 14, 15]; if (currentPage &gt; 15 &amp;&amp; currentPage &lt; 21) pages = ...
[ { "answer_id": 74363255, "author": "romellem", "author_id": 864233, "author_profile": "https://Stackoverflow.com/users/864233", "pm_score": 3, "selected": true, "text": "currentPage value (value * 5) + 1 function createPageRange(currentPage) {\n const startingPageMultiple = Math.ceil(cu...
2022/11/08
[ "https://Stackoverflow.com/questions/74363061", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2584924/" ]
74,363,077
<p>I have a database in which records look like this:</p> <pre><code>{ id: someId initialValue: 100 currentValue: 150 creationDate: someDate } </code></pre> <p>And I have to get values that are the biggest in terms of difference between <code>currentValue</code> and <code>initialValue</code>. Is it possible in ...
[ { "answer_id": 74363199, "author": "user20042973", "author_id": 20042973, "author_profile": "https://Stackoverflow.com/users/20042973", "pm_score": 2, "selected": true, "text": "$addFields {\n $addFields: {\n diff: {\n \"$subtract\": [\n \"$currentValue\",\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13534726/" ]
74,363,079
<p>So my legend here is village which has (Chirodzo, God, Ruaca). How to remove the legend and display it inside the bars; for instance inside the bar for chirodzo, I want chirodzo written inside?</p> <pre><code>ggplot(data = interviews_plotting, aes(x = respondent_wall_type, fill = village)) + geom_bar(position = ...
[ { "answer_id": 74363199, "author": "user20042973", "author_id": 20042973, "author_profile": "https://Stackoverflow.com/users/20042973", "pm_score": 2, "selected": true, "text": "$addFields {\n $addFields: {\n diff: {\n \"$subtract\": [\n \"$currentValue\",\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363079", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20398455/" ]
74,363,085
<p>I want to update the below table where name is null to repeat the pattern from first 10 rows. <a href="https://i.stack.imgur.com/m54X7.png" rel="nofollow noreferrer">enter image description here</a></p> <p>sql:</p> <p>declare @name varchar(255) set @name = select distinct name from #temp update #temp set name = @na...
[ { "answer_id": 74363199, "author": "user20042973", "author_id": 20042973, "author_profile": "https://Stackoverflow.com/users/20042973", "pm_score": 2, "selected": true, "text": "$addFields {\n $addFields: {\n diff: {\n \"$subtract\": [\n \"$currentValue\",\n ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13190639/" ]
74,363,097
<p>We're supposed to do this exercise for webdev class and I can't figure out how to solve it.</p> <p>We have to create a 'person' object and fill it with random information using a method called <code>randomPerson()</code>. That part works fine so far.</p> <pre><code>let person = { fname: &quot;&quot;,...
[ { "answer_id": 74363197, "author": "ncpa0cpl", "author_id": 8907391, "author_profile": "https://Stackoverflow.com/users/8907391", "pm_score": 0, "selected": false, "text": "personsArr person .push() .fill()" }, { "answer_id": 74363268, "author": "depperm", "author_id": 34...
2022/11/08
[ "https://Stackoverflow.com/questions/74363097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19283908/" ]
74,363,107
<p>Is it possible to round the numbers in a data frame to the nearest integer 10?</p> <pre><code>df &lt;- data.frame(a = c(17,1,15,5,1,1,11,0,24,0), b = c(0,10,19,1,1,32,0,5,7,8), c = c(1,1,12,18,7,3,12,1,1,20)) round_df &lt;- function(x, digits) { numeric_columns &lt;- sapply(x, mod...
[ { "answer_id": 74363163, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 2, "selected": false, "text": "round digits = -1 round(df, digits = -1)\n\n a b c\n1 20 0 0\n2 0 10 0\n3 20 20 10\n4 0 0 20\n5 0 0...
2022/11/08
[ "https://Stackoverflow.com/questions/74363107", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20176942/" ]
74,363,122
<p>Can we say that Django models are considered dataclasses? I don't see @dataclass annotation on them or on their base class model.Models. However, we do treat them like dataclasses because they don't have constructors and we can create new objects by naming their arguments, for example MyDjangoModel(arg1= ..., arg2=....
[ { "answer_id": 74363163, "author": "Maël", "author_id": 13460602, "author_profile": "https://Stackoverflow.com/users/13460602", "pm_score": 2, "selected": false, "text": "round digits = -1 round(df, digits = -1)\n\n a b c\n1 20 0 0\n2 0 10 0\n3 20 20 10\n4 0 0 20\n5 0 0...
2022/11/08
[ "https://Stackoverflow.com/questions/74363122", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5402618/" ]
74,363,133
<p>I have two tables containing data on names with a pass/fail variable. I am trying to count how many people originally failed but then passed later on.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Passed</th> </tr> </thead> <tbody> <tr> <td>Mike</td> <td>Passed</td> </tr>...
[ { "answer_id": 74363180, "author": "Micah Ayers", "author_id": 12021976, "author_profile": "https://Stackoverflow.com/users/12021976", "pm_score": 1, "selected": false, "text": "=COUNT(IF(XLOOKUP(IFS(Table13[Passed]<>1, Table13[Name]),Table1[Name],Table1[Passed])=1,1,\"\"))\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12021976/" ]
74,363,137
<p>I've a time series (typically energy usage) recorded over a range of days. Since usage tends to be different over the weekend I want to highlight the weekends.</p> <p>I've done what seems sensible:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt import datetime import random #Create dummy data. ...
[ { "answer_id": 74363180, "author": "Micah Ayers", "author_id": 12021976, "author_profile": "https://Stackoverflow.com/users/12021976", "pm_score": 1, "selected": false, "text": "=COUNT(IF(XLOOKUP(IFS(Table13[Passed]<>1, Table13[Name]),Table1[Name],Table1[Passed])=1,1,\"\"))\n" }, { ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363137", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2806617/" ]
74,363,164
<p>I have data in an array like so:</p> <pre><code>array([[ 5, 5, 5, 6, 9, 6, 6], [10, 4, 10, 3, 5, 3, 3], [10, 3, 10, 4, 5, 3, 4], [ 9, 6, 8, 8, 10, 6, 9], [10, 10, 10, 7, 10, 4, 4], [10, 6, 10, 5, 9, 7, 5], [ 9, 7, 10, 7, 10, 8, 10], [ 8...
[ { "answer_id": 74363601, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 0, "selected": false, "text": "arr = np.sort(arr, axis=1)\narr = arr[(arr==8).sum(axis=1).argsort(kind='stable')]\narr = arr[(arr==9).sum(axis=1)....
2022/11/08
[ "https://Stackoverflow.com/questions/74363164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13800787/" ]
74,363,167
<p>I would like to know how to leave a loop from the terminal, otherwise when closing it...<a href="https://i.stack.imgur.com/6BhF4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6BhF4.png" alt="enter image description here" /></a></p> <p>Thanks!</p> <p>I tried 'exit', 'leave' and others keywords li...
[ { "answer_id": 74363601, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 0, "selected": false, "text": "arr = np.sort(arr, axis=1)\narr = arr[(arr==8).sum(axis=1).argsort(kind='stable')]\narr = arr[(arr==9).sum(axis=1)....
2022/11/08
[ "https://Stackoverflow.com/questions/74363167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17518439/" ]
74,363,200
<p>I need to load a file .xlsx who have multiple worksheet.</p> <p>It look like this :</p> <p>First Worksheet : Zoo</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Location</th> </tr> </thead> <tbody> <tr> <td>Zoo</td> <td>Paris</td> </tr> <tr> <td>END</td> <td></td> </tr> </t...
[ { "answer_id": 74363601, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 0, "selected": false, "text": "arr = np.sort(arr, axis=1)\narr = arr[(arr==8).sum(axis=1).argsort(kind='stable')]\narr = arr[(arr==9).sum(axis=1)....
2022/11/08
[ "https://Stackoverflow.com/questions/74363200", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20067336/" ]
74,363,204
<p>I have a very simple consumer from which I create a materialized view. I have enabled validation on my value object (throwing Constraintviolationexception for invalid json data). When I receive a value on which the validation fails, <em><strong>I exepct the value to logged &amp; consumer should read the next offset ...
[ { "answer_id": 74363601, "author": "Nick ODell", "author_id": 530160, "author_profile": "https://Stackoverflow.com/users/530160", "pm_score": 0, "selected": false, "text": "arr = np.sort(arr, axis=1)\narr = arr[(arr==8).sum(axis=1).argsort(kind='stable')]\narr = arr[(arr==9).sum(axis=1)....
2022/11/08
[ "https://Stackoverflow.com/questions/74363204", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14741163/" ]
74,363,227
<p>I would like to fill the missing values of the dates of a Pandas dataframe, but instead of filling the missing date based only on the date column, I would like to do it based on more than 1 column. In this case, the column <code>source</code>.</p> <p>The example is the following</p> <h3>Original</h3> <pre><code>date...
[ { "answer_id": 74363428, "author": "Naveed", "author_id": 3494754, "author_profile": "https://Stackoverflow.com/users/3494754", "pm_score": 1, "selected": false, "text": "# make the date as of type datetime\ndf['date_found']=pd.to_datetime(df['date_found'])\n\n#find the min_date\nmin_dat...
2022/11/08
[ "https://Stackoverflow.com/questions/74363227", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12474157/" ]
74,363,238
<p>suppose i have</p> <pre><code>list1 = [3, 4, 6, 8, 13] </code></pre> <p>in a for loop I want to subtract the value i from the value that comes right after. In the above example: 4-3, 6-4, 8-6, 13-8. (and i want to skip the first value) desired result</p> <pre><code>list2 = [3, 1, 2, 2, 5] </code></pre> <p>can i do t...
[ { "answer_id": 74363275, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 1, "selected": true, "text": "shift df['list2'] = df['list1'].sub(df['list1'].shift(fill_value=0))\n diff fillna df['list2'] = df['list1'].diff()....
2022/11/08
[ "https://Stackoverflow.com/questions/74363238", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20339178/" ]
74,363,242
<p>I want to store books, with title, year and already existing Author. An author is saved in a table authors that have a one to many relationship with books table. To create a book i have a from with two text inputs and one select. Select is filled from database. Now i want to store them and attach the author immediat...
[ { "answer_id": 74363275, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 1, "selected": true, "text": "shift df['list2'] = df['list1'].sub(df['list1'].shift(fill_value=0))\n diff fillna df['list2'] = df['list1'].diff()....
2022/11/08
[ "https://Stackoverflow.com/questions/74363242", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5751628/" ]
74,363,277
<p>I have an array with two items, which are also arrays themselves: <code>product</code> and <code>countries</code>.</p> <p>There are cases in which the <code>countries</code> array is the same for more than one product, like <code>basic</code> and <code>pro</code> in the example below.</p> <hr /> <h3>Given this array...
[ { "answer_id": 74367333, "author": "Rob Eyre", "author_id": 20418616, "author_profile": "https://Stackoverflow.com/users/20418616", "pm_score": 3, "selected": true, "text": "$productsByCountrySet = [];\nforeach ($array as $product) {\n $countries = $product['countries'];\n sort($co...
2022/11/08
[ "https://Stackoverflow.com/questions/74363277", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5122803/" ]
74,363,313
<p>I am very new to python and programming in generall. I am following a tutorial and tried to install python-docx using pip in the cmd, but it doesn't work. Those are the errors i see:</p> <pre><code>DEPRECATION: lxml is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject....
[ { "answer_id": 74367333, "author": "Rob Eyre", "author_id": 20418616, "author_profile": "https://Stackoverflow.com/users/20418616", "pm_score": 3, "selected": true, "text": "$productsByCountrySet = [];\nforeach ($array as $product) {\n $countries = $product['countries'];\n sort($co...
2022/11/08
[ "https://Stackoverflow.com/questions/74363313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20451134/" ]
74,363,314
<p><strong>EDIT: Now after 16 hours break I realized I have been misreading the results for hours - I didn't notice that there is <code>null</code> in all cases, so the behavior is consistent unlike I claim in this question (facepalm). However I decided not to delete this question but only close it as there is already ...
[ { "answer_id": 74367333, "author": "Rob Eyre", "author_id": 20418616, "author_profile": "https://Stackoverflow.com/users/20418616", "pm_score": 3, "selected": true, "text": "$productsByCountrySet = [];\nforeach ($array as $product) {\n $countries = $product['countries'];\n sort($co...
2022/11/08
[ "https://Stackoverflow.com/questions/74363314", "https://Stackoverflow.com", "https://Stackoverflow.com/users/272735/" ]
74,363,316
<p>i need actual_new column from actual in pandas dataframe.</p> <pre><code>start time end time actual actual_new 4/1/2022 20:00 4/1/2022 21:00 0.749123 0.749123 4/1/2022 21:00 4/1/2022 22:00 0.749123 0.770175 4/1/2022 22:00 4/1/2022 23:00 0.749123 0.725439 4/1/2022 23:00 4/2/2022 0:00 ...
[ { "answer_id": 74363560, "author": "fnqwejflqo", "author_id": 17060744, "author_profile": "https://Stackoverflow.com/users/17060744", "pm_score": 1, "selected": false, "text": "df['actual_new'] = list(df['actual'].unique())*int(df.shape[0]/len(uniques))\n" }, { "answer_id": 74363...
2022/11/08
[ "https://Stackoverflow.com/questions/74363316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5506647/" ]
74,363,320
<p>there is an example with content dropdown: <a href="https://codesandbox.io/s/expand-content-4pc09c?fil.." rel="nofollow noreferrer">https://codesandbox.io/s/expand-content-4pc09c?fil..</a>. But the appearance of content on the button is quite fast. I need to set smoothness using the transition property, but it didn'...
[ { "answer_id": 74376229, "author": "Franco Gabriel", "author_id": 19499461, "author_profile": "https://Stackoverflow.com/users/19499461", "pm_score": 3, "selected": true, "text": "visibility styles .wrapper__content.expanded visibility visible hidden transition-delay height height: auto ...
2022/11/08
[ "https://Stackoverflow.com/questions/74363320", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10073607/" ]
74,363,345
<p>So I'm trying to make an app where you fill out a survey and then go to another page. I've tried using React Router for this. I followed a tutorial but when I try to render components with Route in them it doesn't seem to render. components without Route seem to work fine.</p> <p>main app:</p> <pre><code>import Intr...
[ { "answer_id": 74363892, "author": "Letincel", "author_id": 4735563, "author_profile": "https://Stackoverflow.com/users/4735563", "pm_score": 0, "selected": false, "text": "function Intro() {\n const navigate = useNavigate();\n\n const navigateToB1= () => \n {\n navigate('./B1.js')...
2022/11/08
[ "https://Stackoverflow.com/questions/74363345", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10528301/" ]
74,363,374
<p>Using openpyxl we can properly check if a cell is fully bold/not bold, but we cannot work with richtext so having two words, one bolded and one not, will make the check fail.</p> <p>This can be done correctly with xlrd, but it doesn't support xlsx files. Converting from xlsx to xls is risky, especially in my use cas...
[ { "answer_id": 74363946, "author": "ojdo", "author_id": 2375855, "author_profile": "https://Stackoverflow.com/users/2375855", "pm_score": 1, "selected": false, "text": ".xls" }, { "answer_id": 74364103, "author": "Remzinho", "author_id": 2484591, "author_profile": "ht...
2022/11/08
[ "https://Stackoverflow.com/questions/74363374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11377787/" ]
74,363,404
<p>I am trying to filter a vector of structs by a struct attribute and then return another attribute. However I'm not quite sure how to elegantly extract the value.</p> <p>My function will take in the name of a budget and then I want to return the id of that budget by searching through a list of <code>Budget</code>s.</...
[ { "answer_id": 74363613, "author": "Seve Martinez", "author_id": 8055704, "author_profile": "https://Stackoverflow.com/users/8055704", "pm_score": 1, "selected": false, "text": "fn get_budget_id(&self, budget_name: &str) -> anyhow::Result<String> {\n let budget_data = self.get_bud...
2022/11/08
[ "https://Stackoverflow.com/questions/74363404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8055704/" ]