Skip to content

Commit 724aec6

Browse files
committed
Coerce frame type (windows prefers int32)
1 parent 721859c commit 724aec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/hats/io/file_io/test_file_io.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ def test_load_csv_to_pandas_generator_encoding(tmp_path):
103103

104104

105105
def test_write_df_to_csv(tmp_path):
106-
random_df = pd.DataFrame(np.random.randint(0, 100, size=(100, 4)), columns=list("ABCD"))
106+
random_df = pd.DataFrame(np.random.randint(0, 100, size=(100, 4)), columns=list("ABCD")).astype(int)
107107
test_file_path = tmp_path / "test.csv"
108108
write_dataframe_to_csv(random_df, test_file_path, index=False)
109-
loaded_df = pd.read_csv(test_file_path)
109+
loaded_df = pd.read_csv(test_file_path).astype(int)
110110
pd.testing.assert_frame_equal(loaded_df, random_df)
111111

112112

0 commit comments

Comments
 (0)