Category : numpy

I am trying to calculate the intersection points of a line and a rectangular prism. The volume of the rectangular prism is represented by 6 planes. s1 = np.array([[-0.25,0,0], [1,0,0]]); s2 = np.array([[0.25,0,0], [1,0,0]]); s3 = np.array([[0,-0.15,0],[0,1,0]]); s4 = np.array([[0,0.15,0],[0,1,0]]); s5 = np.array([[0,0,0],[0,0,1]]); s6 = np.array([[0,0,0.3],[0,0,1]]) surfaces = np.array([s1,s2,s3,s4,s5,s6]) The line is represented by a ..

Read more

my pandas dataframe is not correctly placing items when i append new row to it. i use a function to make it easier to append. also when i append without function it works fine. image code: from emailsender import email_send import pandas as pd import numpy as np try: file = pd.read_csv("customers.csv") except: pass customers ..

Read more

I get this error when I try to import linearmodels: "numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject" I run Anaconda, python 3.8.8 on Windows 10. It is a fresh installation of Anaconda Python on a new machine. I tried to solve this problem by using an ..

Read more