Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

python

I have written this function to get the size of a string, can it be optimized?

August 23, 2022 by Magenaut

I don’t want to use python functions to calculate but I want to implement a function myself. The problem comes when the chain is very long. The program starts to take about 5 minutes.

Categories Python, Q&A Tags optimization, python, size, string Leave a comment

a uniform data structure that can represent an ndarray with various size along a given axis

August 23, 2022 by Magenaut

I can use the following code to generate three dimensional array.

Categories Python, Q&A Tags computer-vision, numpy, numpy-ndarray, python, scipy Leave a comment

Django request doesn’t save the logged in user

August 23, 2022 by Magenaut

So I’m starting to learn Django authentication.

Categories Python, Q&A Tags django, django-authentication, django-views, python Leave a comment

How to populate a dataframe from row-by-row calculations?

August 23, 2022 by Magenaut

I am seeking to populate a pandas dataframe row-by-row, whereby each new row is calculated on the basis of the contents of the previous row. I am using this for simple financial projections.

Categories Python, Q&A Tags dataframe, pandas, python, python-3.x Leave a comment

Issues with clockwise polar plot

August 23, 2022 by Magenaut

I have a list of values representing radius (r) and another representing angles (theta). I am trying to make a polar plot with North as 0 deg, East as 90 deg and so on.

Categories Python, Q&A Tags matplotlib, numpy, python Leave a comment

Python pandas how increase +1 end of each sku?

August 23, 2022 by Magenaut

I have an pandas dataframe like this:

Categories Python, Q&A Tags pandas, python Leave a comment

How to pass params in jaydebeapi .execute?

August 23, 2022 by Magenaut

I want to select data from oracle DB using python and jaydebeapi. I’m trying to get data using next script:

Categories Python, Q&A Tags jaydebeapi, oracle, python Leave a comment

FastAPI Model error one to many relationship

August 23, 2022 by Magenaut

I’m new to fastapi and I’m having some issues setting up a one to many relationship. My API works fine when I have the code for the relationship commented out but when trying to have the relationship in it causes an error saying

Categories Python, Q&A Tags fastapi, python Leave a comment

Poisson random variable in python

August 23, 2022 by Magenaut

Assume that number of calls that some call center receives during one minute is Poisson random variable with parameter λ=2. Use Python to find probability that number of calls is larger than 5. Enter number with first 5 digits after the decimal point.

Categories Python, Q&A Tags distribution, poisson, python Leave a comment

BeautifulSoup – Can’t find children tags by CSS selectors

August 23, 2022 by Magenaut

I tried all the solutions mentionned here but none of it is working on my code.
My problem is i only want to get the text from spans tags which are children of h2 tags (and not h3 tags) on this Wikipedia page (https://fr.wikipedia.org/wiki/Manga)
This is my code :

Categories Python, Q&A Tags beautifulsoup, css, css-selectors, python Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page830 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress