For a (x, y, z) three-dimensional space, the dataframe sequence of [‘x ‘,’y’,’z ‘] is generated
import pandas as pd
import numpy as np
# x = 30 ,y = 20, z = 5
_x_size_temp = 30
_y_size_temp = 20
_z_size_temp = 5
_x_se = []
for _ in range(_x_size_temp):
_x_se += [_] * (_y_size_temp * _z_size_temp)
_y_se = []
for _ in range(_y_size_temp):
_y_se += [_] * (_z_size_temp)
_y_se *= _x_size_temp
_z_se = []
_z_se = np.arange(0, _z_size_temp).tolist() * (_x_size_temp * _y_size_temp)
cargo_state_3d = pd.DataFrame(data={
'x': _x_se,
'y': _y_se,
'z': _z_se,
})
Read More:
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- ERROR: invalid byte sequence for encoding “UTF8”: 0x00
- Httprunner v3. X generates HTML report in assure format
- Microsoft OLE DB Provider for SQL Server error & #x27;80040e4d & #x27;
- Error in lm.fit (x, y, offset = offset, singular.ok = singular.ok ,…): no (non Na) cases available
- Can’t find Python executable “D:\python3\python.exe”, you can set the PYTHON env variable.
- Pandas generates new columns through LOC
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- Error casting p_sequencer, please verify that this sequence/sequence item is intended to execute
- 【fiddler】Error:ConnectionRefused(0x274d)
- [solved] win10 + office2016 error: library not registered, HResult: 0x8002801d
- How to Solve Cocos Creator 3.x 2D Ray Detect Error
- Solution to error report of Jackson coordinate introduced by spring
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- Win10 (1703) app store download app prompt error code 0x80d0000a
- module ‘win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9‘ has no attribute ‘CLSIDToClassMa
- Python learning notes (5) — cross entropy error runtimeerror: 1D target tensor expected, multi target not supported
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- Creation and use of Oracle sequence
- Error in cov.wt(z) : ‘x’ must contain finite values only