What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-21 15:33:27
skimage marching cubes lewiner
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.art3d import Poly3DCollection from skimage import measure from skimage.draw import ellipsoid # Generate a level set about zero of two identical ellipsoids in 3D ellip_base = e... Add solution -
Python 2021-10-22 06:46:08
pandas - unlist values and put in a row
# Version for one list column to put in signle row lst_col = 'my_list_var' r = pd.DataFrame({ col:np.repeat(df[col].values, df[lst_col].str.len()) for col in df.columns.drop(lst_col)} ).assign(**{lst_col:np.concatenate(df[lst_col].values)... Add solution -
Python 2021-10-14 05:50:06
extract label from tf data
y = np.concatenate([y for x, y in ds], axis=0) Add solution