test_operations module
Tests for NavData class.
- test_operations.test_add_numpy(numpy_array, add_array)[source]
Test addition of a numpy array to NavData
- Parameters:
numpy_array (np.ndarray) – Array with which NavData instance is initialized
add_array (np.ndarray) – Array to add to NavData
- test_operations.test_add_numpy_1d()[source]
Test addition of a 1D numpy array to NavData with single row
- test_operations.test_add_pandas_df(df_simple, add_df)[source]
Test addition of a pd.DataFrame to NavData
- Parameters:
df_simple (pd.DataFrame) – pd.DataFrame to initialize NavData with
add_df (pd.DataFrame) – pd.DataFrame to add to NavData
- test_operations.test_concat(df_simple)[source]
Test concat functionaltiy.
- Parameters:
df_simple (pd.DataFrame) – Simple pd.DataFrame with which to initialize NavData.
- test_operations.test_concat_fails(df_simple)[source]
Test when concat should fail.
- Parameters:
df_simple (pd.DataFrame) – Simple pd.DataFrame with which to initialize NavData.