QuestionId int64 74.8M 79.8M | UserId int64 56 29.4M | QuestionTitle stringlengths 15 150 | QuestionBody stringlengths 40 40.3k | Tags stringlengths 8 101 | CreationDate stringdate 2022-12-10 09:42:47 2025-11-01 19:08:18 | AnswerCount int64 0 44 | UserExpertiseLevel int64 301 888k | UserDisplayName stringlengths 3 30 β |
|---|---|---|---|---|---|---|---|---|
78,438,315 | 11,269,351 | No module named βtorch._custom_opsβ in Jupyter Notebooks | <p>I'm not sure if this is the right place to ask, but I just installed cuda tools to run some GPU-based machine learning stuff on my computer, and I'm running into an issue importing torch.</p>
<p>I'm on Ubuntu 22.04
I've tried installing torch within a conda environment and locally. Unfortunately, when I try to impor... | <python><jupyter-notebook><pytorch> | 2024-05-06 17:48:37 | 2 | 411 | EnigmaticBacon |
78,438,233 | 18,764,592 | Flask: how to return validation before full route code execution | <p>Sorry for newbie question - I am new in Python.</p>
<p>I have to return validation result of Flask route parameter before main code execution:</p>
<pre class="lang-py prettyprint-override"><code>@app.route('/', methods=['POST'])
def index():
validation = code_to_check_parameters()
if validation:
retu... | <python><python-3.x><flask><python-asyncio> | 2024-05-06 17:29:24 | 1 | 385 | vbulash |
78,438,128 | 903,011 | Is it possible to dynamically set the template string? | <p>I would like to configure outside of my program a template string, and then apply it at runtime:</p>
<pre class="lang-py prettyprint-override"><code>my_string = "hello {country}" # β this string would be read in from an external configuration file
country = "France"
print(f%%my_string%%) # β the ... | <python><string><templates> | 2024-05-06 17:07:49 | 2 | 30,596 | WoJ |
78,438,018 | 7,695,845 | Using parallelization in numba is better for one algorithm, but not for another similar algorithm? | <p>I am making a simulation of <code>N</code> particles with the same mass and random velocities. I want to compute the total energy and total momentum of the system. I considered 4 approaches and wanted to benchmark them to see which one performs best:</p>
<ol>
<li>Using regular numpy routines and computations.</li>
<... | <python><numpy><benchmarking><numba> | 2024-05-06 16:44:34 | 1 | 1,420 | Shai Avr |
78,437,949 | 10,927,888 | Py4JJavaError -Running pyspark job locally using PyCharm IDE causing Py4JJavaError error while accessing s3 data | <p>I am new to python world of coding . While I try to run existing pyspark job in my location windows maching using PyCharm community editioin IDE <strong>I am getting error "Py4JJavaError"</strong> as show below.</p>
<p><strong>I am using python 3.10 version with pyspark 3.5.1 and spark-3.3.0-bin-hadoop3</s... | <python><amazon-s3><pyspark><pycharm><py4j> | 2024-05-06 16:30:39 | 0 | 501 | Shasu |
78,437,933 | 3,623,537 | statically override function's argument and keep correct type hints and doc-strings | <p>I have a function <code>original</code> with specified arguments, their types and a doc-string.</p>
<p>How can I define a function <code>new</code> that what that it would basically call <code>original</code> but override <code>a</code> argument with some <code>A_DEFAULT</code> value. E.g. <code>new(x) == original(A... | <python><python-typing> | 2024-05-06 16:27:07 | 1 | 469 | FamousSnake |
78,437,909 | 12,974,079 | side_effect not iterating on Mock in Pytho | <p>I'm trying to obtain different responses by each call on a Mock by using the <code>side_effect</code> attribute. However, I'm obtaining the first one each time. I would like to ask if I can get any help on it. Thank you in advance</p>
<pre><code>import json
from typing import Dict
from unittest.mock import Mock, pat... | <python><python-3.x><python-unittest><python-unittest.mock> | 2024-05-06 16:21:28 | 1 | 363 | HouKaide |
78,437,788 | 10,565,052 | Pyiceberg catalog in GCS: I cannot use pyceberg with google Cloud storage | <p>I want to use the library <a href="https://pypi.org/project/pyiceberg/" rel="nofollow noreferrer">pyiceberg</a> with Google cloud storage.</p>
<p>I have a catalog created in Google Cloud storage using Pyspark and I would want to read this tables from there.</p>
<p>I see this <a href="https://py.iceberg.apache.org/co... | <python><google-cloud-storage><apache-iceberg> | 2024-05-06 15:56:34 | 1 | 1,334 | J.C Guzman |
78,437,752 | 7,307,824 | Flatten data from Pandas read_html but extracting the links | <p>I have a html table like the following:</p>
<pre><code>html_text = "<table>
<tr>
<th>Home</th>
<th>Score</th>
<th>Away</th>
<th>Report</th>
</tr>
<tr>
<td>Arsenal</td>
<td></td>
<... | <python><pandas> | 2024-05-06 15:49:15 | 2 | 568 | Ewan |
78,437,677 | 1,028,270 | How do I make 404s show up as errors or even warnings in locust log output? | <p>I'm trying to understand locust log levels. Why am I only seeing this in DEBUG output?</p>
<pre><code>[2024-05-06 15:25:54,465] e9d5c4e3e3eb/DEBUG/selenium.webdriver.remote.remote_connection: Remote response: status=404 | data={"value":{"error":"no such element","message":&quo... | <python><locust> | 2024-05-06 15:36:33 | 0 | 32,280 | red888 |
78,437,508 | 474,597 | Verifying constructor calling another constructor | <p>I want to verify <code>Foo()</code> calls <code>Bar()</code> without actually calling <code>Bar()</code>. And then I want to verify that <code>obj</code> is assigned with whatever <code>Bar()</code> returns.</p>
<p>I tried the following:</p>
<pre class="lang-py prettyprint-override"><code>class Bar:
def __init__... | <python><pytest><python-unittest.mock> | 2024-05-06 15:05:44 | 1 | 18,040 | lulalala |
78,437,375 | 736,662 | How to fail a test for an api call if json brackets are not empty | <p>I have a Pytest script making a HTTP call:</p>
<pre><code>def test_bid_submission_send():
# Act:
response = post_requests(token, '/xxx/api/xxx/bidsubmissions/send',
setpayload_bidsubmissions_send(powerplantId))
# Assert:
assert not response.json()["error"]
assert response.status_co... | <python><json><pytest> | 2024-05-06 14:41:08 | 1 | 1,003 | Magnus Jensen |
78,437,370 | 1,159,488 | Trying to write a pwntools exploit to buffer-overflow a binary | <p>My goal is to buffer-overflow a binary written in C. That binary asks me to input a name.<br />
After having opened the binary with Ghidra, I discovered the following code that should help me to build an exploit :</p>
<pre><code>undefined8_8 main(void)
{
int iVar10;
char local_99 [106];
undef... | <python><binary><reverse><buffer-overflow><pwntools> | 2024-05-06 14:40:03 | 1 | 629 | Julien |
78,437,296 | 9,021,875 | Custom type from multiple inputs for click option | <p>I am using click library in python.
I am trying to create an option that create an object from multiple inputs in the command line.
For example if the command line is <code>python main.py --param1 a --param2 34 --param3 True --all 1</code> the option will take the 3 params (param1, param2, param3) and create a custo... | <python><argparse> | 2024-05-06 14:27:09 | 0 | 1,839 | Yedidya kfir |
78,437,281 | 7,758,213 | Django renaming log level to 3 character format | <p>In python, using logging module, the log level format can be changed with:</p>
<pre><code>logging.addLevelName(logging.DEBUG, 'DBG')
</code></pre>
<p>How can I do it in Django?
My (working) logging configuration in settings.py:</p>
<pre><code>LOGGING: dict[Any, Any] = {
'version': 1,
'formatters': {
'app_log_fo... | <python><django><python-logging> | 2024-05-06 14:24:48 | 1 | 968 | Izik |
78,437,171 | 6,036,330 | Import python package from zip | <p>In <a href="https://medium.com/snowflake/custom-packages-in-streamlit-in-snowflake-2-easy-ways-e70b453c57b8" rel="nofollow noreferrer">medium.com article</a> there is a section about accessing the packages stored in the ZIP file using code:</p>
<pre><code>import sys
sys.path.append("my_package.zip")
from m... | <python><package><zip> | 2024-05-06 14:05:26 | 1 | 655 | neringab |
78,437,162 | 3,813,424 | How to mitigate some emojis consuming the whitespace character following them? | <p>I have a list of strings, like this:</p>
<pre><code>data = [
"- π T-SHIRT",
"- β±οΈ UMBRELLA",
"- π CAR",
"- π₯οΈ COMPUTER"
]
</code></pre>
<p>In Python, when I loop over <code>data</code>, most lines <code>print()</code> fine, however some emojis eat the single whitespace char... | <python><python-3.x><emoji> | 2024-05-06 14:03:13 | 2 | 319 | St4rb0y |
78,437,040 | 7,947,368 | jupyter notebook removes left blank space of matplotlib | <p>The following code should display "ax" offset to the right (overlapping "ax1") with a padding on the left (where it was originally)</p>
<pre class="lang-py prettyprint-override"><code># Implementation of matplotlib function
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.col... | <python><matplotlib><jupyter-notebook> | 2024-05-06 13:42:57 | 1 | 639 | Sheed |
78,437,014 | 4,513,726 | how to generate a coo matrix from two dataframes in sparse format | <p>I have two dataframes in sparse format with slightly different indices and columns. I need a coo version of a concatenated dataframe of both dataframes. When I try to generate a coo matrix from them I get zeros in the <code>data</code> attribute which is unexpected to me. Even if all the columns have a <code>pd.Spar... | <python><pandas><scipy> | 2024-05-06 13:37:48 | 1 | 1,646 | mfastudillo |
78,436,968 | 8,549,300 | Cannot import module that is installed | <p>I have installed a Python module in a virtual environment on Ubuntu, but it is not found (<code>ModuleNotFoundError: No module named 'neuroHarmonize'</code>). I used <code>pip install neuroHarmonize</code>. When I activate my environment and run <code>pip show neuroHarmonize</code> I get:</p>
<pre><code>Name: neuroH... | <python><installation> | 2024-05-06 13:30:52 | 1 | 361 | firefly |
78,436,713 | 5,419,861 | Getting "Missing Command Parameter" from winappdriver | <p>When we trying to switch the window handle from winappdriver,</p>
<pre><code>driver.swith_to.window(driver.window_handles[0])
</code></pre>
<p>We got the below error,</p>
<pre><code>Traceback (most recent call last):
File "C:\Users\user_name\PycharmProjects\my_automation\test_ui,py", line 60, in test_login... | <python><webdriver><winappdriver> | 2024-05-06 12:45:03 | 0 | 695 | Suresh Kumar |
78,436,618 | 9,069,476 | Finding link redirections with Python | <p>I have a dataframe with two rows, both correspond to apartment offers in a real estate website. The first offer has an invalid link, since the data was downloaded a long time ago and it was withdrawn; while the second one has a valid link.</p>
<pre><code>invalid=df.loc[0, "Link"]
valid=df.loc[1, "Link... | <python><python-requests> | 2024-05-06 12:26:27 | 0 | 307 | JosΓ© Carlos Rojas |
78,436,539 | 11,756,186 | Superimpose plot with background (image) chart | <p>I am trying to use an existing graph as a background for new data that I want to plot on top of the graph.
I have been able to do so when using a graph with all information contained within the axes and using the <code>extent</code> parameter of <code>plt.imshow</code> because then I just have to scale the image.</p... | <python><matplotlib><charts> | 2024-05-06 12:12:16 | 1 | 681 | Arthur |
78,436,536 | 1,613,983 | How do I prevent virtual environments having access to system packages? | <p>noob here. I have a dockerised jupyter lab instance where I have a bunch of packages installed for the root user, and now I want to add an additional kernel that has no packages at all (yet). Here's how I've tried to do that:</p>
<pre><code># SYSTEM SETUP
FROM python:3.11.5-bookworm
ADD requirements/pip /requiremen... | <python><virtualenv> | 2024-05-06 12:12:02 | 1 | 23,470 | quant |
78,436,430 | 1,552,080 | Problems with starting waitress-serve via systemd service | <h2>Project Environment</h2>
<p>I have a Flask-based web service I can start from the command line. The project environment looks like this:</p>
<pre><code>BASEDIR/
startMyService.sh
|-venv/
|-/bin
|...
|-/WebService...
|-Flask-related directories
</code></pre>
<p>I am providing a virtua... | <python><flask><virtualenv><systemd><waitress> | 2024-05-06 11:53:15 | 0 | 1,193 | WolfiG |
78,436,387 | 6,307,685 | Clarification about the decorator of the step() method of the stochastic gradient descent class | <p>In the SGD class of pytorch, the <code>step()</code> method has the decorator <code>_use_grad_for_differentiable</code>:</p>
<pre class="lang-py prettyprint-override"><code>@_use_grad_for_differentiable
def step(self, closure=None):
...
</code></pre>
<p>Usually I would expect the <code>no_grad</code> decorator to be... | <python><machine-learning><pytorch><gradient-descent> | 2024-05-06 11:41:58 | 0 | 761 | soap |
78,436,275 | 2,695,082 | Convert raw bytes image data received from Python into C++ Qt QIcon to be displayed in QStandardItem | <p>I am creating small GUI system and I would like to get an image in the form of raw bytes from Python code and then create QImage/QIcon using those raw bytes. For C++/Python interaction I am using Boost Python.</p>
<p>On Python code side I printed the raw bytes:
b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00@\x00\... | <python><c++><python-3.x><qt> | 2024-05-06 11:20:54 | 1 | 329 | user2695082 |
78,435,795 | 3,941,671 | pyside6 Is it possible to connect QSlider.valueChanged with QLabel.setText in one line? | <p>I have a GUI and I want to connect a slider and a label showing the current slider value.
The <code>QSlider.valueChanged</code> event returns an integer, while <code>QLabel.setText</code> needs a string. Is there a possibility, to connect these both elements in one line instead of writing an extra function?</p>
<p>T... | <python><pyside6> | 2024-05-06 09:43:27 | 2 | 471 | paul_schaefer |
78,435,208 | 5,761,601 | FastAPI background tasks do not work on Azure function apps | <p>I followed the <a href="https://fastapi.tiangolo.com/tutorial/background-tasks/" rel="nofollow noreferrer">documentation</a> to add background tasks to an Azure Function App with FastAPI:</p>
<pre class="lang-py prettyprint-override"><code>async def background_task():
logging.info("Background task started&q... | <python><python-3.x><azure><azure-functions> | 2024-05-06 07:44:50 | 2 | 557 | warreee |
78,435,165 | 11,922,765 | convert dataframe from florida EDT to the California timezone | <p>A database in Florida stores data from California in Florida day light saving time. Now, I want to convert it to the California time.</p>
<p>Code:</p>
<pre><code>import pandas as pd
from pytz import timezone
from datetime import datetime
# Sample DataFrame (ensure it is defined correctly in your script)
data = {
... | <python><pandas><dataframe><datetime><timezone> | 2024-05-06 07:37:22 | 0 | 4,702 | Mainland |
78,435,157 | 12,571,870 | Confusing conversion of types in pandas DataFrame | <p>Suppose I have a list of list of numbers that happen to be encoded as strings.</p>
<pre><code>import pandas as pd
pylist = [['1', '43'], ['2', '42'], ['3', '41'], ['4', '40'], ['5', '39']]
</code></pre>
<p>Now I want a dataframe where these numbers are integers.
I can see from pandas documentation that I can force a... | <python><pandas><dataframe> | 2024-05-06 07:35:19 | 1 | 438 | ivan199415 |
78,435,139 | 12,556,481 | Download a PDF using Selenium in Python | <p><em>I'm trying to download the following PDF from a browser's PDF viewer by clicking the download button.</em></p>
<p><a href="https://i.sstatic.net/VrJrnnth.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VrJrnnth.png" alt="image" /></a></p>
<p><em>I tried the following code using ID, CSS_SELECTOR, a... | <python><python-3.x><selenium-webdriver> | 2024-05-06 07:31:45 | 3 | 309 | dfcsdf |
78,434,960 | 7,217,960 | How to mock property with side effects based on self, using PyTest | <p>I've tried the code bellow, using <strong>new_callable=PropertyMock</strong> to mock a property call, and <strong>autospec=True</strong> to be able to access self in the side effect function:</p>
<pre><code>from unittest.mock import PropertyMock
def some_property_mock(self):
if self.__some_member == "some_... | <python><mocking><pytest> | 2024-05-06 06:50:12 | 1 | 412 | Guett31 |
78,434,891 | 7,204,691 | How to prompt gpt so it does not make mistakes with time window | <p>I'm trying to extract property condition from estate description. In particular, any property being renovated in 2020 or above should be tagged as "JUST_RENOVATED" whereas if the renovation took place before 2020, it should simply be tagged as "GOOD".</p>
<p>Here is an example :</p>
<p>Given the ... | <python><openai-api><large-language-model> | 2024-05-06 06:35:52 | 1 | 307 | Mathieu Rousseau |
78,434,881 | 4,442,753 | May I implement a classmethod calling instance attributes? | <p>I need a class function which creates a new instance from existing instance attributes.</p>
<p>This seems to me to be a factory function (hence the thought that it could be a class method), but it needs the class to be instanced.</p>
<p>Should/may I use the <code>@classmethod</code> decorator?</p>
<pre class="lang-p... | <python> | 2024-05-06 06:33:30 | 1 | 1,003 | pierre_j |
78,434,832 | 8,723,790 | Python Flask Blueprint routes always print request and response content | <p>In my Python Flask app I use Blueprint route to serve and handle API requests.</p>
<p>app/<strong>init</strong>.py</p>
<pre><code>from api.foo import foo_route
def create_app(config):
app = Flask(__name__)
app.register_blueprint(foo_route)
...
return app
</code></pre>
<p>api/foo.py</p>
<pre><code>fro... | <python><flask> | 2024-05-06 06:19:45 | 1 | 301 | Paul Chuang |
78,434,754 | 3,643,544 | What is the space complexity of the following code? | <p>What is the space complexity of the following code?</p>
<pre><code>def f(n):
sum = 0
if n == 0:
return 1
else:
for i in range(n):
sum = sum + f(i)
return sum
</code></pre>
<p>So, this is a recursive function and I thought since every function is calling all the functions b... | <python><recursion><space-complexity> | 2024-05-06 05:56:06 | 1 | 456 | idpd15 |
78,434,699 | 11,922,765 | Why does filtering based on a condition results in an empty DataFrame in pandas? | <p>I'm working with a DataFrame in Python using pandas, and I'm trying to apply multiple conditions to filter rows based on temperature values from multiple columns. However, after applying my conditions and using <code>dropna()</code>, I end up with zero rows even though I expect some data to meet these conditions.</p... | <python><pandas><dataframe><numpy> | 2024-05-06 05:37:16 | 2 | 4,702 | Mainland |
78,434,560 | 10,132,474 | lmdb read slow when file amout is a little larger | <p>I installed lmdb from python:</p>
<pre><code>python -m pip install lmdb
</code></pre>
<p>Then I write images into it, I have two settings, one is inserting 6800 images, and the other is 10000 images. All the images have size of 1024x2048, and they are in png format, and my memory size is 1T.</p>
<p>Here is part of t... | <python><memory><io><lmdb> | 2024-05-06 04:38:21 | 0 | 1,147 | coin cheung |
78,434,495 | 1,613,983 | How do I map new SQL Server functions to SQL Alchemy's ORM | <p>I want to call <code>SUSER_SNAME</code> using SQLAlchemy's ORM. I can call the <code>user()</code> function like this:</p>
<pre><code>res = connection.execute(sqlalchemy.sql.functions.user())
</code></pre>
<p>But If I replace <code>user()</code> with <code>suser_sname()</code> I get this:</p>
<blockquote>
<p>Attribu... | <python><sqlalchemy> | 2024-05-06 04:08:25 | 1 | 23,470 | quant |
78,434,489 | 2,597,146 | Argparse How to add mutually exclusive group to argument group help text used as parent parser for all subparsers | <p>The <a href="https://docs.python.org/3.12/library/argparse.html#argparse.ArgumentParser.add_mutually_exclusive_group" rel="nofollow noreferrer">argparse docs</a> refer to an example of how to add a mutually exclusive group to an argument group to add title/description to those arguments. However, when used in <code>... | <python><argparse><python-3.12> | 2024-05-06 04:06:16 | 2 | 632 | Phoenix |
78,434,091 | 18,157 | Apply shell expansion to arguments in run/debug configuration? | <p>I'm working on a Python script, in PyDev, which will be invoked from the command line. In that environment, shell expansion will be applied to the argument list, which is what I need.</p>
<p>When running or debugging in Eclipse/PyDev, that expansion is NOT applied, making it difficult to test under "real"... | <python><eclipse><pydev> | 2024-05-05 23:55:25 | 1 | 86,987 | Jim Garrison |
78,433,954 | 8,010,064 | Find element in HTML text - Selenium Python | <p>I'm trying to find elements by plain or <code>innerHTML</code> text:</p>
<pre><code>newresults = driver.find_elements("xpath","//*[@class='card is-category-product']")
for result in newresults:
htmlEl = result.get_attribute('innerHTML')
</code></pre>
<p>So basically I want to search withi... | <python><selenium-webdriver> | 2024-05-05 22:37:40 | 2 | 312 | buzz |
78,433,813 | 13,829,601 | Pyglet - How can I add a bloom postprocessing step to my scene? | <p>I have a simple <a href="https://pyglet.readthedocs.io/en/latest/" rel="nofollow noreferrer">Pyglet</a> scene below. I would like to apply a postprocessing step to add bloom to the scene. How can this be done using pyglet?</p>
<p>I've tried looking through all the documentation for framebuffers and postprocessing st... | <python><opengl><glsl><pyglet> | 2024-05-05 21:27:37 | 0 | 416 | Raga |
78,433,757 | 8,785,574 | telegram doesn't show white spaces correctly | <p>I create a text in Python, and it displays correctly in its true shape in the terminal. However, when I use the Telegram API to send it to my channel, the white space sizes are not shown correctly. Here is a picture of the text in the terminal, and the other one is in Telegram.</p>
<p>I use this Python code to gener... | <python><telegram><telegram-bot> | 2024-05-05 21:02:46 | 1 | 364 | Mahdiyar Zerehpoush |
78,433,740 | 7,267,141 | How to prevent matplotlib Axes.imshow from destroying the plot layout? | <p>I have the following code which is supposed to draw an image at specific region on a red background. At first I did not draw any image, just making the background red:</p>
<pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt
import numpy as np
papersize = (8.5, 11)
fig = plt.figure(figs... | <python><matplotlib> | 2024-05-05 20:52:54 | 1 | 603 | Adam Bajger |
78,433,719 | 14,943,540 | Enable communication between two servers on local machine | <p>I want to send an HTTP request from a server to a flask app, both running on my local machine.
I'm sending the http request as:</p>
<p><code>var response = await httpClient.PostAsync("http://192.168.1.56:5000/api/forward-file", form);</code></p>
<p>I've used <code>telnet</code> command to check for connect... | <python><web-services><flask> | 2024-05-05 20:47:11 | 0 | 321 | federico D'Armini |
78,433,575 | 18,494,333 | Specify multiple values for one argument Python Argparser | <p>I've built a working CLI for my app using python's <code>argparse</code>. It's called <code>comicbot</code>, and it sends emails with comics in them. The <code>bulk</code> subparser allows a certain number of comics to be specified.</p>
<pre><code>usage: comicbot bulk [-h] [-e END | -c COUNT] email [email ...] comic... | <python><syntax><command-line-interface><argparse> | 2024-05-05 19:57:01 | 1 | 387 | MillerTime |
78,433,554 | 15,540,632 | Python Pyspark dataframe Object to R sparklyr dataframe object, is the conversion possible? | <p>I want to execute python in R, I found <a href="https://rstudio.github.io/reticulate/" rel="nofollow noreferrer">reticulate</a>, it is R package to execute python code. However, the python code returns a <em><strong>pyspark dataframe object</strong></em>, how can I convert it to an R object (potentially sparklyr dat... | <python><r><pyspark><sparklyr><reticulate> | 2024-05-05 19:48:58 | 0 | 414 | Ali Massoud |
78,433,277 | 262,748 | How to deal with a python project dependency that "must exist" in the env but can't be installed? | <p>I don't have a lot of experience with python project organization, but I've been trying to follow modern best practices using a <a href="https://packaging.python.org/en/latest/discussions/setup-py-deprecated/" rel="nofollow noreferrer">pyproject.toml</a> and structure as in this <a href="https://www.youtube.com/watc... | <python><pip><conda><arcpy><pyproject.toml> | 2024-05-05 18:10:21 | 1 | 5,320 | Benny Jobigan |
78,433,231 | 5,179,240 | version `GLIBC_2.28' not found when running aws lambda python 3.9 | <p>Suddenly, when I run my AWS lambda, I'm getting this error:</p>
<pre><code>"Unable to import module 'lambda_name': /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /var/task/cryptography/hazmat/bindings/_rust.abi3.so)
</code></pre>
<p>I'm using Python runtime 3.9 with the following requirments.txt:... | <python><amazon-web-services><aws-lambda> | 2024-05-05 17:52:55 | 2 | 335 | Dalal Alghomlas |
78,433,181 | 4,212,158 | How to correctly delete abandoned Python filelocks on Linux | <p>As mentioned elsewhere, Python's <code>FileLock</code>s do not delete themselves after being released on Linux (<a href="https://stackoverflow.com/questions/58098634/why-does-the-python-filelock-library-delete-lockfiles-on-windows-but-not-unix">[1]</a><a href="https://github.com/tox-dev/filelock/issues/31" rel="nofo... | <python><design-patterns><multiprocessing><file-locking> | 2024-05-05 17:38:26 | 0 | 20,332 | Ricardo Decal |
78,433,026 | 18,313,927 | coroutine was never awaited when running my test functions with pytest-asyncio and moto | <p>I have a function that lists and returns dynamodb tables</p>
<pre><code>async def func(connectionId: str | None) -> list[str]:
async with aioboto3.Session().client("dynamodb") as db:
response = await db.list_tables()
table_names = response.get('TableNames', [])
return table_name... | <python><pytest><python-asyncio><moto> | 2024-05-05 16:51:47 | 1 | 717 | Vishal Balaji |
78,432,974 | 5,722,359 | Why are `_parent_pid` and `_parent_name` attributes of class BaseProcess(object) in multiprocessing/process.py assigned with current info? | <p>According to the <code>multiprocessing/process.py</code> file for Python 3.10.12:</p>
<pre><code>class BaseProcess(object):
'''
Process objects represent activity that is run in a separate process
The class is analogous to `threading.Thread`
'''
def _Popen(self):
raise NotImplementedErro... | <python><python-multiprocessing> | 2024-05-05 16:35:13 | 1 | 8,499 | Sun Bear |
78,432,724 | 15,140,144 | Python stub: how to annotate properly a function that uses CPython PySequence_Check? | <p>I have a function implemented in C that is exposed to python (c extension) that accepts a sequence. Its signature looks something like this:</p>
<pre class="lang-py prettyprint-override"><code>from typing import Sequence
def my_c_func(my_sequence: Sequence[TypeDoesntMatter]):
...
</code></pre>
<p>But the thing... | <python><mypy><python-typing><function-signature> | 2024-05-05 15:24:01 | 0 | 316 | oBrstisf8o |
78,432,532 | 6,037,769 | Django ordering with many to many relationship in model | <p>I am using Django-rest-framework modelviewset, I have a many-to-many relationship with my models below:</p>
<pre><code>class Data(TimestampMixin):
user = models.ForeignKey(
"User",
null=True,
blank=True,
on_delete=models.SET_NULL,
related_name="files",
... | <python><python-3.x><django><sorting><django-rest-framework> | 2024-05-05 14:22:47 | 0 | 1,859 | Jc John |
78,432,498 | 172,677 | How to avoid the joblib's parallel open many files? | <p>EDIT: I have <a href="https://github.com/joblib/joblib/issues/1581" rel="nofollow noreferrer">submit a issue on github</a>, in that version I remove the <code>user</code> limit in <code>lsof</code>, and the opened files are much more.</p>
<p>A simplified case as following(Python 3.11.8, joblib 1.4.0):</p>
<pre><code... | <python><concurrency><parallel-processing><joblib> | 2024-05-05 14:10:48 | 0 | 18,929 | Eastsun |
78,432,398 | 988,125 | Keras NLP finetuning dataset incompatibility | <p>I am running a python 3.11 instance on Google Colab to finetune a GPT-2 model. I install <code>keras-nlp</code> as follows, and my package versions become:</p>
<pre><code>!pip install keras_nlp
print(tf.__version__)
print(keras.__version__)
print(keras_nlp.__version__)
print("Num GPUs Available: ", len(tf.... | <python><tensorflow><keras><keras-nlp> | 2024-05-05 13:39:31 | 1 | 11,996 | Zhubarb |
78,432,348 | 424,957 | How to match video duration with music's duration? | <p>I have a video file and music files, I want to match the video duration with multiple musics in min diff = ideo duration, sum of musics duraion. I use code as below, but it looks like not all answers, what can I get all combination? do I have to use recursionοΌ</p>
<pre><code>musicList = [music filename list
timeLis... | <python><recursion> | 2024-05-05 13:23:59 | 0 | 2,509 | mikezang |
78,432,208 | 774,575 | How to reverse axes when plotting a Series? | <p>How to swap x and y axes when plotting a time Series? Either by manipulating the Series or with <code>Series.plot()</code>. I know it's possible for a DataFrame, by plotting its <code>transpose</code>.</p>
<pre><code>import pandas as pd
import numpy.random as npr
def rand_data(n=5):
return npr.choice([1,5,6,8,9... | <python><pandas><matplotlib><series> | 2024-05-05 12:34:49 | 1 | 7,768 | mins |
78,432,150 | 13,392,257 | AttributeError: 'Depends' object has no attribute 'add' | <p>I am trying to use database session in the middleware (to write metrics to the database)</p>
<p>I am using <code>fastapi.params.Depends</code> in <code>@app.middleware("http")</code></p>
<p>I read this question <a href="https://stackoverflow.com/questions/72243379/fastapi-dependency-inside-middleware">Fas... | <python><fastapi> | 2024-05-05 12:16:07 | 2 | 1,708 | mascai |
78,431,835 | 8,543,025 | Plotly Heatmap has Limit on Data Size | <p>Iβm trying to create a (very) large heatmap using <code>plotly</code>. My dataset is of shape <code>(10, 85000)</code>, and I noticed that I canβt display heatmaps when the row size is greater than 65k:</p>
<pre><code>row_size = 65000 # change this to 66000 and the figure is displayed empty
z = np.random.randint(0,... | <python><python-3.x><plotly><heatmap> | 2024-05-05 10:36:28 | 1 | 593 | Jon Nir |
78,431,743 | 1,832,767 | Make mypy to understand, that the attribute is not None | <p>quick description of my environment:</p>
<pre><code>- django 4.2.11
- mypy 1.9.0
- django-stubs 4.2.5
</code></pre>
<p>Here is a synthetic example I made bellow, just for that post, please don't judge me for the meaning of names, etc. The point is how to han... | <python><django-models><mypy><python-typing> | 2024-05-05 09:58:00 | 1 | 449 | AntonTitov |
78,431,432 | 8,024,622 | Reading zipped csv and adding new lines | <p>I have a zip file t.zip containing two csv files. The first one is s.csv (30kB) and the other is p.csv (60GB).</p>
<p>What I'm doing now is unzipping p.csv to the disk, reading the second last line, doing some logic and then adding new lines to p.csv. After that I'm zipping the file again.</p>
<p>Is there a better w... | <python><pandas><zip><python-zipfile> | 2024-05-05 07:52:54 | 1 | 624 | jigga |
78,431,171 | 14,244,880 | Python list.remove() internals | <p>How does python <code>list.remove()</code> work internally?</p>
<p>For example, when adding to Java sets, Java compares both <code>hash()</code> and <code>equals()</code> methods. Does python compare the <code>__eq__()</code> method or something else?</p>
<p>Alternatively, does the implementation vary? If so, what i... | <python><list> | 2024-05-05 05:38:23 | 1 | 306 | z.x.99 |
78,430,960 | 7,674,262 | presidio transformers package not available, despite being installed | <p>I'm trying to run the example code on <a href="https://microsoft.github.io/presidio/analyzer/nlp_engines/transformers/" rel="nofollow noreferrer">this</a> Microsoft documentation, but I am presented with a package not found error. I'm on a MAC and my friend had the same problem on his machine too. I'm sure that a I ... | <python><huggingface-transformers><pii><presidio> | 2024-05-05 03:27:58 | 1 | 442 | NeoFahrenheit |
78,430,938 | 6,077,239 | How to partition a big Polars dataframe and save each one in parallel to a CSV file? | <p>I have a big <code>Polars</code> dataframe with a lot of groups. Now, I want to partition the dataframe by group and save all sub-dataframes. I can easily do this as follows:</p>
<pre class="lang-py prettyprint-override"><code>for d in df.partition_by(["group1", "group2"]):
d.write_csv(f"... | <python><dataframe><csv><partitioning><python-polars> | 2024-05-05 03:15:58 | 3 | 1,153 | lebesgue |
78,430,760 | 13,461,081 | Python - Kalman Filter (Unscented) not working corretly | <p>I am trying to implement a Kalman Filter which is used to filter calculated values of Speed, Heading, Acceleration and Yaw Rate. I also use the Kalman Filter to predict future values and use those to calculate future geographical positions of an object.</p>
<p>It seems that the Filter is resetting the predicted valu... | <python><prediction><kalman-filter><motion><pykalman> | 2024-05-05 00:54:51 | 1 | 916 | AndrΓ© ClΓ©rigo |
78,430,651 | 3,103,957 | Setting up path to find packages and modules | <p>I have the follwing folder structure of my Python project:
Project is the base directory.</p>
<pre><code>Project
|------package1
| |--------module1.py
| |--------module2.py
|------package2
| |--------module3.py
| |--------module4.py
|------Test
| |---... | <python><import> | 2024-05-04 23:36:07 | 0 | 878 | user3103957 |
78,430,560 | 9,256,321 | Julia: PCRE.exec error: match limit exceeded when using Regex | <p>I'm trying to apply a rather complex regex to a large string in Julia. For reproducibility, the string is:</p>
<pre><code>A = "66666666666666666666666666666111111222222212222222222222222222333612222222222332323366111161111122122116666666666666666666666666666666661111111111211222212221221222222222222222222222222... | <python><regex><julia> | 2024-05-04 22:43:42 | 1 | 350 | lafinur |
78,430,553 | 8,010,064 | Get second srcset attribute using Beautiful Soup | <p>I'm trying to get the second srcset attribute in beautiful Soup, the original html is as follows:</p>
<pre><code><picture class="card-picture ratio ratio-4x3">
<source srcset="/shop/media/L004D000_picture.PNG?context=bWFzdGVyfGltYWdlc3wzMDE3NTN8aW1hZ2UvcG5nfGgwMS9oMjcvODg0ODIyMDYxODc4Mi9MMDA0... | <python><beautifulsoup> | 2024-05-04 22:40:35 | 1 | 312 | buzz |
78,430,525 | 8,484,261 | Pandas pivot sum using groupy not working due to a datetime column | <p>I am trying to sum the values in multiple columns of a pandas dataframe pivot based on the values in the 'Category' columns. However, I am getting an error becasue of a datee column in the pivot table.
How do I sum all the pivoted monthly columns by Category?</p>
<p>Executable code:</p>
<pre><code># test groupbysum
... | <python><pandas><dataframe> | 2024-05-04 22:14:06 | 1 | 3,700 | Alhpa Delta |
78,430,389 | 3,048,453 | Make sense of decompressed xref data from PDF | <p>I try to read in a PDF in binary format and parse its information.
I can parse most objects, including using <code>zlib</code> to decompress FlateDecoded data.</p>
<p>But when I try to parse the compressed xref data, I cannot make sense of the decompressed data.</p>
<p>I am using this <a href="https://cran.r-project... | <python><pdf> | 2024-05-04 21:05:12 | 1 | 10,533 | David |
78,430,312 | 1,973,920 | How to get pyparsing to match "1 day" or "2 days" but fail "1 days" and "2 day"? | <p>I'm trying to match a sentence fragment of the form "after 3 days" or "after 1 month". I want to be particular with the single and plural forms, so "1 day" is valid but "1 days" is not.</p>
<p>I have the following code which is nearly there but the first two entries in the fai... | <python><pyparsing> | 2024-05-04 20:31:33 | 1 | 516 | BruceH |
78,430,188 | 2,537,486 | Selecting from DataFrames with mixed dtypes MultiIndex columns returns data with wrong type | <p>I have DataFrames organized like this:</p>
<pre><code>import pandas as pd
df = pd.DataFrame(
columns=pd.MultiIndex.from_product([['Time','A','B'],[1,2]]),
index=[0,1,2],
data=[[0,1,2,3,4,5],[10,11,12,13,14,15],[20,21,22,23,24,25]],
dtype=float)
</code></pre>
<p>Now I want to select al... | <python><pandas> | 2024-05-04 19:40:28 | 1 | 1,749 | germ |
78,430,078 | 8,484,261 | Formatting excel output from pandas for font size, color etc for all sheets | <p>I am writing out multiple dataframes to a excel workbook. I want to change the default font to "century Gothic" and size to 9 and color to blue (font color 2659D9) for all the sheets.
I also want the numbers column to have an accounting format and the date columns to have yyyy-mm-dd format. I tried the co... | <python><pandas><excel><dataframe> | 2024-05-04 18:53:33 | 1 | 3,700 | Alhpa Delta |
78,430,062 | 14,457,833 | PyQt5 How to add a pyuic5 generated Python class into QStackedWidget? | <p>I've this in my <code>app.py</code>:</p>
<pre class="lang-py prettyprint-override"><code>from PyQt5 import QtWidgets
from screens import Ui_home, Ui_login_page
class MainWindow(QtWidgets.QMainWindow):
def __init__(self):
QtWidgets.QMainWindow.__init__(self)
self.home = Ui_home()
... | <python><qt><pyqt><pyqt5><qt5> | 2024-05-04 18:48:39 | 1 | 4,765 | Ankit Tiwari |
78,430,004 | 8,484,261 | sorting python dataframe by values in a column based on a list | <p>I have a pandas dataframe which I am trying to sort on the basis of values in a column, but the sorting is not alphabetical. The sorting is based on a "sorter" list (i.e. a list which gives the order in which values should be sorted).
However, I am getting error when I do this.
executable code below:</p>
<... | <python><pandas><dataframe><sorting><categorical-data> | 2024-05-04 18:26:21 | 3 | 3,700 | Alhpa Delta |
78,429,935 | 2,697,895 | How to get notified when a partition is mounted or unmounted in RPi OS and Python? | <p>I tried the following code and I am not getting any notification when mounting and unmounting partitions. Am I missing something ?</p>
<p>I use the library <code>pyinotify</code> to watch the changes in the file <code>/proc/mounts</code>... but it seems that my handler is never called...</p>
<pre><code>import pyinot... | <python><raspberry-pi><pyinotify> | 2024-05-04 17:59:52 | 1 | 3,182 | Marus Gradinaru |
78,429,919 | 51,816 | How to reverse audio normalization using python? | <p>The application I used to export my edited audio was normalizing the audio which I don't want. I have the original audio that doesn't have normalization, and the new audio that has some parts shifted around to match video timing but is normalized by the application.</p>
<p>Is it possible to reverse the normalization... | <python><numpy><audio><pydub><audacity> | 2024-05-04 17:53:51 | 0 | 333,709 | Joan Venge |
78,429,819 | 5,896,591 | python2.7 - How to decode JSON without decoding the UTF-8 inside of it? | <p>I need a function to decode UTF-8 encoded JSON. This function should take a UTF-8 encoded JSON string and convert it to UTF-8 encoded objects. The following code works:</p>
<pre><code># helper function
def Obj_To_UTF8(o):
res = {}
for k, v in o.items():
k = k.encode('utf-8')
v = v.encode('utf... | <python><json><python-2.7><utf-8> | 2024-05-04 17:15:59 | 1 | 4,630 | personal_cloud |
78,429,619 | 5,699,993 | aws lambda function does not work when importing a function from a different file in a different folder | <p>I have the simplest possible Python function and I am able to deploy it as an AWS Lambda function.</p>
<p>The code of the function is this</p>
<p><strong>handler.py</strong></p>
<p>import json</p>
<pre><code>def ask(event, context):
body = {
"message": f"Go Serverless v3.0! Your function e... | <python><amazon-web-services><aws-lambda> | 2024-05-04 16:09:09 | 1 | 17,802 | Picci |
78,429,573 | 2,562,058 | How to configure debugpy for editable install? | <p>I am trying to develop a package that I have installed with <code>pip install -e .</code> .
The project structure is the following:</p>
<pre><code>mypackage
βββ build
βΒ Β βββ mypackage-0.8.83.dist-info
βΒ Β βββ licenses
βββ dist
βββ docs
βββ manual_tests
βΒ Β βββ manual_test.py
βββ src
βΒ Β βββ mypackage
βββ tests
... | <python><debugging><debugpy> | 2024-05-04 15:54:22 | 0 | 1,866 | Barzi2001 |
78,429,348 | 2,179,138 | "Command not found" after installing pip package oemer on macos | <p>I installed oemer using the instructions from this page: <a href="https://github.com/BreezeWhite/oemer" rel="nofollow noreferrer">https://github.com/BreezeWhite/oemer</a> .</p>
<pre><code>pip3 install oemer
</code></pre>
<p>(I had to use pip3 on my system.)</p>
<p>Then went to run it, also according to instructions ... | <python><macos><pip> | 2024-05-04 14:35:05 | 2 | 1,134 | KevinHJ |
78,429,162 | 19,003,861 | Django Form - POST method not recognised as POST in views | <p>In my django project, I am trying to create a form which the user will access through a specific url.</p>
<p>By clicking on the url, the user will be automatically redirected to a <code>pager_id</code>.</p>
<p>Inbetween the user click on said url and being redirected to <code>page_id</code>, a form will be passed in... | <python><django><django-forms> | 2024-05-04 13:41:59 | 1 | 415 | PhilM |
78,429,087 | 8,484,261 | Fixing Header rows while writing a pivot dataframe to excel | <p>I am pivoting a dataframe and then filtering it. And then I need to write it to excel. But when I write it out,</p>
<ol>
<li>it is inserting a blank row between the header rows and the data rows</li>
<li>I want the header row names in one row not two rows. So, in the example below for the output to excel, I wan thte... | <python><pandas><excel><dataframe> | 2024-05-04 13:08:04 | 1 | 3,700 | Alhpa Delta |
78,429,030 | 9,174,271 | Common wheel zoom in pyecharts grid chart | <p>In pyecharts, I create a grid with two graphs having the same x-axis. I'd like to be able to zoom both at the same time using mouse wheel. It works on the single graph using <code>datazoom_opts=[opts.DataZoomOpts(type_="inside")]</code>, but I couldn't find a way to have something similar in <code>Grid</co... | <python><echarts> | 2024-05-04 12:50:16 | 1 | 312 | GDN |
78,428,918 | 354,051 | scipy's find_peaks method produces inconsistent results | <pre class="lang-py prettyprint-override"><code>import numpy as np
import math
import matplotlib.pyplot as plt
from scipy.io import wavfile
from scipy.signal import resample
from scipy.signal._peak_finding_utils import _local_maxima_1d
def select_by_peak_distance(peaks, priority, distance):
"""
... | <python><scipy> | 2024-05-04 12:06:42 | 0 | 947 | Prashant |
78,428,827 | 8,484,261 | filtering a pivoted dataframe | <p>I am trying to filter a pivoted dataframe. But it is giving an error in the pivot part.
How do I fix this?</p>
<p>The executable code is below:</p>
<pre><code>import numpy as np
df = pd.DataFrame({
'Year':[2022,2022,2023,2023,2024,2024],
'Month':[1,12,11,12,1,1],
'Code':[None,'John Johnson',... | <python><pandas><dataframe> | 2024-05-04 11:31:02 | 1 | 3,700 | Alhpa Delta |
78,428,805 | 21,445,669 | Cannot install timesynth with Poetry | <p>When I run <code>poetry add timesynth</code>, I get the following error:</p>
<pre><code>Backend subprocess exited when trying to invoke build_wheel
error: Multiple top-level packages discovered in a flat-layout: ['cmake', 'symengine'].
To avoid accidental inclusion of unwanted files or directories,
setuptool... | <python><python-poetry><symengine> | 2024-05-04 11:23:56 | 1 | 549 | mkranj |
78,428,739 | 16,545,894 | generate PDF with picture Django rest framework | <p>With the code below, I can easily generate a PDF:</p>
<pre><code>import weasyprint
def admin_order_pdf(request, sell_id): # working fine
try:
sell = Sell.objects.get(id=sell_id)
except Sell.DoesNotExist:
return HttpResponse('Sell object does not exist')
html = render_to_string('sell_invoice.... | <python><django><django-rest-framework><weasyprint><django-weasyprint> | 2024-05-04 11:01:17 | 1 | 1,118 | Nayem Jaman Tusher |
78,428,544 | 10,770,967 | Converting UTC Column into datetime in python pandas | <p>I would like to ask for little support. I have here a python frame containing data giving in UTC format. I would like to transform the column into date-format.</p>
<pre><code>Order Date
15-Feb-2024 UTC
17-Feb-2024 UTC
18-Feb-2024 UTC
02-Apr-2024 UTC
05-Mar-2024 UTC
04-Mar-2024 UTC
11-Apr-2024 UTC
12-Apr-2024 UTC
16-... | <python><pandas><datetime><utc><python-datetime> | 2024-05-04 09:57:18 | 1 | 402 | SMS |
78,428,505 | 19,375,296 | scipy.interpolate.LinearNDInterpolator run in a Docker container fills up memory | <p>Why does this run in <strong>3 seconds</strong> when I run it directly on my computer and barely uses any RAM, but fills up <strong>30GB of RAM</strong> and <strong>20GB of swap</strong> when I run it in a Python Docker container ?</p>
<h3>test.py</h3>
<pre class="lang-py prettyprint-override"><code>import time
impo... | <python><docker><numpy><scipy> | 2024-05-04 09:42:06 | 1 | 348 | TimothΓ©e Billiet |
78,428,399 | 694,716 | How to solve abstract class override maximum recursion depth issue? | <p>I am creating a class that has abstract methods and overriding in sub classes.</p>
<p><code>MethodInterceptor</code> class has a method named <code>__getattribute__</code> that call before and after method in executing methods:</p>
<pre><code>from abc import abstractmethod, ABC
class MethodInterceptor(object):
... | <python> | 2024-05-04 09:02:15 | 0 | 6,935 | barteloma |
78,428,358 | 10,623,444 | Create MultiPolygon objects from struct type and list[list[list[f64]]] columns using Polars | <p>I have downloaded the NYC Taxi Zones <a href="https://data.cityofnewyork.us/Transportation/NYC-Taxi-Zones/d3c5-ddgc" rel="nofollow noreferrer">dataset</a> (downloaded from SODA Api and saved as json file - Not GeoJson or Shapefile). The dataset is rather small, thus I am using the whole information included. For the... | <python><python-polars><shapely><wkt><multipolygons> | 2024-05-04 08:46:16 | 1 | 1,589 | NikSp |
78,428,135 | 4,418,481 | Edit plotly labels by double click | <p>I'm working on a PyQt app that uses Plotly to create some figures. I use QWebEngineView to display the HTML in a Python window by doing something like this:</p>
<pre><code> return f"""
<html>
<head>
<script src='https://cdn.plot.ly/plotly-latest.min.js'><... | <python><plotly> | 2024-05-04 07:19:16 | 0 | 1,859 | Ben |
78,427,983 | 9,586,338 | Why does `dict(id=1, **{'id': 2})` sometimes raise `KeyError: 'id'` instead of a TypeError? | <p>Normally, if you try to pass multiple values for the same keyword argument, you get a TypeError:</p>
<pre><code>In [1]: dict(id=1, **{'id': 2})
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Input In [1], in <... | <python><cpython> | 2024-05-04 06:19:19 | 1 | 6,549 | Waket Zheng |
78,427,958 | 11,221,706 | Failing Kubernetes Pod creation from Python script executed in Init Container? | <p>Is it possible to fail/terminate pod creation from a Python script executed from an Init container?</p>
<p><strong>Init container</strong>:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app.kubernetes.io/name: MyApp
spec:
containers:
- name: myapp-container
image: busybox:... | <python><kubernetes> | 2024-05-04 06:08:07 | 1 | 1,059 | robtot |
78,427,707 | 6,546,694 | How to add range column over groups in polars | <p>I have:</p>
<pre><code>df = pl.DataFrame({'key':['a','a','a','b','b','b'],'a':[2,4,6,1,2,3]})
print(df)
shape: (6, 2)
βββββββ¬ββββββ
β key β a β
β --- β --- β
β str β i64 β
βββββββͺββββββ‘
β a β 2 β
β a β 4 β
β a β 6 β
β b β 1 β
β b β 2 β
β b β 3 β
βββββββ΄ββββββ
</code></pre>
<p>I want to add ... | <python><dataframe><window-functions><python-polars> | 2024-05-04 03:49:05 | 2 | 5,871 | figs_and_nuts |
78,427,685 | 15,474,507 | non-bidirectional messages between chats | <p>I'm trying to achieve bidirectionality of messages, but messages from Chat B are not displayed in Chat A and I don't understand why, if it's a server or client side problem</p>
<pre><code>from starlette.applications import Starlette
from starlette.responses import HTMLResponse
from starlette.websockets import WebSoc... | <javascript><python> | 2024-05-04 03:31:00 | 0 | 307 | Alex Doc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.