Skip to content

Commit

Permalink
feat(setup): change package naming (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos committed Jan 30, 2023
1 parent 97cdd71 commit 99e2e9f
Show file tree
Hide file tree
Showing 335 changed files with 935 additions and 923 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report_form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ body:
description: A minimal standalone code sample that reproduces the bug
placeholder: |
import pandas as pd
from pandas_profiling import ProfileReport
from ydata_profiling import ProfileReport
df = pd.read_parquet(r"<file>")
report = ProfileReport(df, title="bug report")
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
- id: nbqa-black
- id: nbqa-isort
args: [ --profile=black, --project=pandas_profiling ]
args: [ --profile=black, --project=ydata_profiling ]
- id: nbqa-pyupgrade
args: [ --py36-plus ]
- repo: https://github.com/asottile/pyupgrade
Expand All @@ -25,16 +25,16 @@ repos:
- id: pyupgrade
args: ['--py37-plus','--exit-zero-even-if-changed']
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
files: '.*'
args: [ --profile=black, --project=pandas_profiling ]
args: [ --profile=black, --project=ydata_profiling ]
- repo: https://github.com/mgedmin/check-manifest
rev: "0.47"
hooks:
- id: check-manifest
args: [ "--ignore=src/pandas_profiling/version.py" ]
args: [ "--ignore=src/ydata_profiling/version.py" ]
stages: [manual]
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
Expand All @@ -60,8 +60,8 @@ repos:
(?x)(
^tests/|
^docsrc/|
^src/pandas_profiling/utils/common.py|
^src/pandas_profiling/utils/imghdr_patch.py
^src/ydata_profiling/utils/common.py|
^src/ydata_profiling/utils/imghdr_patch.py
)
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
Expand Down
6 changes: 3 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ include requirements*.txt
include LICENSE
include *.md
include mypy.ini
include src/pandas_profiling/py.typed
include src/ydata_profiling/py.typed

# Templates and static resources
recursive-include src/pandas_profiling/report/presentation/flavours/html/templates *.html *.js *.css
recursive-include src/ydata_profiling/report/presentation/flavours/html/templates *.html *.js *.css

# Configuration
include src/pandas_profiling/*.yaml
include src/ydata_profiling/*.yaml

# Spark Dev venv
recursive-include venv *.yml
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ test:
pytest tests/unit/
pytest tests/issues/
pytest --nbval tests/notebooks/
pandas_profiling -h
ydata_profiling -h

test_spark:
pytest --spark_home=${SPARK_HOME} tests/backends/spark_backend/
pandas_profiling -h
ydata_profiling -h

test_cov:
pytest --cov=. tests/unit/
pytest --cov=. --cov-append tests/issues/
pytest --cov=. --cov-append --nbval tests/notebooks/
pandas_profiling -h
ydata_profiling -h

examples:
find ./examples -maxdepth 2 -type f -name "*.py" -execdir python {} \;
Expand Down
2 changes: 1 addition & 1 deletion docsrc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from datetime import date

sys.path.insert(0, os.path.join("..", "..", "src"))
sys.path.insert(0, os.path.join("..", "..", "src", "pandas_profiling"))
sys.path.insert(0, os.path.join("..", "..", "src", "ydata_profiling"))


# -- Project information -----------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions examples/bank_marketing_data/banking_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_zipped_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_zipped_file

if __name__ == "__main__":
file_name = cache_zipped_file(
Expand Down
6 changes: 3 additions & 3 deletions examples/census/census.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import numpy as np
import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.config import Dataset
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.config import Dataset
from ydata_profiling.utils.cache import cache_file

if __name__ == "__main__":
file_name = cache_file(
Expand Down
4 changes: 2 additions & 2 deletions examples/chicago_employees/chicago_employees.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_file

if __name__ == "__main__":
file_name = cache_file(
Expand Down
4 changes: 2 additions & 2 deletions examples/colors/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_file

if __name__ == "__main__":
file_name = cache_file(
Expand Down
4 changes: 2 additions & 2 deletions examples/features/correlation_auto_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_zipped_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_zipped_file

"""
The "Auto" correlation is an interpretable pairwise column metric of the following mapping:
Expand Down
8 changes: 4 additions & 4 deletions examples/features/correlation_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_zipped_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_zipped_file

"""
The "Auto" correlation is an interpretable pairwise column metric of the following mapping:
Expand Down Expand Up @@ -32,7 +32,7 @@
profile = ProfileReport(
df,
title="Profile Report of the UCI Bank Marketing Dataset",
config_file="src/pandas_profiling/config_default.yaml",
config_file="src/ydata_profiling/config_default.yaml",
correlations={
"auto": {"n_bins": 8},
},
Expand All @@ -57,7 +57,7 @@
no_auto_profile = ProfileReport(
df,
title="Profile Report of the UCI Bank Marketing Dataset",
config_file="src/pandas_profiling/config_default.yaml",
config_file="src/ydata_profiling/config_default.yaml",
correlations={
"auto": {"calculate": False},
"pearson": {"calculate": True},
Expand Down
4 changes: 2 additions & 2 deletions examples/features/eda_dataset_compare.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_file

if __name__ == "__main__":
# Read the Titanic Dataset
Expand Down
4 changes: 2 additions & 2 deletions examples/features/great_expectations_example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import great_expectations as ge
import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_file

file_name = cache_file(
"titanic.csv",
Expand Down
4 changes: 2 additions & 2 deletions examples/features/images_cats_and_dogs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import kaggle
import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.paths import get_data_path
from ydata_profiling import ProfileReport
from ydata_profiling.utils.paths import get_data_path

# The dataset in this example is obtained using the `kaggle` api.
# If you haven't done so already, you should set up the api credentials:
Expand Down
4 changes: 2 additions & 2 deletions examples/features/images_exif.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import kaggle
import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.paths import get_data_path
from ydata_profiling import ProfileReport
from ydata_profiling.utils.paths import get_data_path

# The dataset in this example is obtained using the `kaggle` api.
# If you haven't done so already, you should set up the api credentials:
Expand Down
4 changes: 2 additions & 2 deletions examples/features/mask_sensitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import pandas as pd

from pandas_profiling import ProfileReport
from pandas_profiling.utils.cache import cache_file
from ydata_profiling import ProfileReport
from ydata_profiling.utils.cache import cache_file

if __name__ == "__main__":
file_name = cache_file("auto2.dta", "http://www.stata-press.com/data/r15/auto2.dta")
Expand Down
2 changes: 1 addition & 1 deletion examples/features/russian_vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pandas as pd

from pandas_profiling import ProfileReport
from ydata_profiling import ProfileReport

if __name__ == "__main__":
df = pd.read_csv(
Expand Down
Loading

0 comments on commit 99e2e9f

Please sign in to comment.