util.testing import assert_index_equal, assert_frame_equal import pandas_market_calendars as pec import pandas_market_calendars as mcal from pandas_market_calendars.exchange_calendar_nyse import NYSEExchangeCal
pd.testing.assert_frame_equal(matrix_df, expected_df, obj=matrix_path.stem) else: pd.testing.assert_frame_equal( matrix_df, expected_df, obj=matrix_path.stem, atol=absolute_tolerance ) def compare_matrices(database_path: Path, matrices_path: Path) -> None: def compare_matrices( database...
importsqlite3importpandasaspdpd.options.mode.copy_on_write=Truecon=sqlite3.connect(':memory:')df_sql=pd.read_sql(sql='SELECT 1 AS a, 2 AS b WHERE FALSE',con=con,index_col='a', )df_plain=pd.DataFrame(columns=['b'],index=pd.Index([],name='a'))pd.testing.assert_frame_equal(lef...
private static void AssertBarsAreEqual(IBar expected, IBar actual) { if (expected == null && actual == null) 109 changes: 109 additions & 0 deletions 109 Tests/Python/PandasConverterTests.cs Original file line numberDiff line numberDiff line change @@ -26,6 +26,9 @@ using System; ...
/usr/local/lib/python3.8/site-packages/pandas_datareader/compat/__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. from pandas.util.testing import assert_frame_equal Traceback (most recent call last): File "/usr/...
assert_frame_equal(inverse_transformed_df, test_data.rename_axis(columns="feature")) # test feature names in and out if __sklearn_version__ >= __sklearn_1_0__: # noinspection PyUnresolvedReferences assert_array_equal( transformer_df.feature_names_in_.values, transformer_native.feature_name...
imports import ( _TORCH_GREATER_EQUAL_2_1, _TORCH_GREATER_EQUAL_2_2, _TORCH_GREATER_EQUAL_2_3, ) from lightning.fabric.utilities.init import _EmptyInit, _has_meta_device_parameters_or_buffers from lightning.fabric.utilities.init import _has_meta_device_parameters_or_buffers from lightning....