-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: suppress pandas tick resolution adjustment (#1635)
* fix: suppress pandas tick resolution adjustment * fix: remove unused import * fix: file typo * fix: ts plot x axis date format * chore: upgrade wordcloud version * fix: re-enable compatibility mode * fix: ensure type_schema for testing
- Loading branch information
1 parent
5a185b0
commit ca43fc8
Showing
4 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Test for issue 1631: | ||
https://github.com/ydataai/ydata-profiling/issues/1631 | ||
""" | ||
import pandas as pd | ||
|
||
from ydata_profiling import ProfileReport | ||
|
||
|
||
def test_issue1631(test_output_dir): | ||
data = { | ||
"value": [1, 2, 3, 4], | ||
"datetime": [ | ||
"2022-10-01 00:10:00", | ||
"2022-10-02 00:20:00", | ||
"2022-10-03 00:30:00", | ||
"2022-10-04 00:40:00", | ||
], | ||
} | ||
df = pd.DataFrame(data) | ||
df["datetime"] = pd.to_datetime(df["datetime"], errors="raise") | ||
df.set_index("datetime", inplace=True) | ||
profile = ProfileReport(df, tsmode=True, type_schema={"value": "timeseries"}) | ||
output_file = test_output_dir / "issue1631.html" | ||
profile.to_file(output_file) | ||
|
||
assert output_file.exists() |
File renamed without changes.