Skip to content

Commit ae9f26f

Browse files
committed
Fix for issue ydataai#353 (fixing requirement versions)
1 parent e74730d commit ae9f26f

File tree

3 files changed

+41
-23
lines changed

3 files changed

+41
-23
lines changed

requirements.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
scipy
2-
requests
3-
missingno>=0.4.2
4-
matplotlib
5-
jinja2>=2.10.1
1+
scipy>=1.4.1
2+
requests>=2.22.0
3+
missingno==0.4.2
4+
matplotlib>=3.1.2
5+
jinja2==2.11.1
66
numpy>=1.16.0
7-
pandas
8-
htmlmin
9-
phik
10-
confuse>=1.0.0
11-
astropy
12-
tangled-up-in-unicode>=0.0.3
13-
visions>=0.2.1
7+
pandas==0.25.3
8+
htmlmin==0.1.12
9+
phik==0.9.8
10+
confuse==1.0.0
11+
astropy==4.0
12+
tangled-up-in-unicode==0.0.3
13+
visions==0.2.1

setup.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131
license="MIT",
3232
description="Generate profile report for pandas DataFrame",
3333
install_requires=[
34-
"pandas>=0.19",
35-
"matplotlib>=1.4",
36-
"confuse>=1.0.0",
37-
"jinja2>=2.8",
34+
"pandas==0.25.3",
35+
"matplotlib>=3.1.2",
36+
"confuse==1.0.0",
37+
"jinja2==2.11.1",
3838
# Related to HTML report
39-
"htmlmin>=0.1.12",
39+
"htmlmin==0.1.12",
4040
# Could be optional
41-
"missingno>=0.4.2",
42-
"phik>=0.9.8",
43-
"astropy",
41+
"missingno==0.4.2",
42+
"phik==0.9.8",
43+
"astropy==4.0",
4444
],
4545
extras_require={
46-
"notebook": ["jupyter-client>=5.3.4", "jupyter-core>=4.6.1", "ipywidgets"],
47-
"app": ["pyqt5>=5.14.1"],
48-
"html": ["htmlmin>=0.1.12"],
46+
"notebook": ["jupyter-client==5.3.4", "jupyter-core==4.6.1", "ipywidgets"],
47+
"app": ["pyqt5==5.14.1"],
48+
"html": ["htmlmin==0.1.12"],
4949
},
5050
include_package_data=True,
5151
classifiers=[

tests/issues/test_issue353.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Test for issue 353:
3+
https://github.com/pandas-profiling/pandas-profiling/issues/353
4+
"""
5+
import numpy as np
6+
import pandas as pd
7+
8+
from pandas_profiling import ProfileReport
9+
10+
11+
def test_issue353():
12+
df = pd.DataFrame(
13+
np.random.rand(100, 5),
14+
columns=['a', 'b', 'c', 'd', 'e']
15+
)
16+
# make one column categorical
17+
df["a"] = df["a"].multiply(5).astype("int").astype("category")
18+
profile = ProfileReport(df, title='Pandas Profiling Report', html={'style': {'full_width': True}})

0 commit comments

Comments
 (0)