Skip to content

Commit d3b58e7

Browse files
azory-ydatafabclmnt
authored andcommitted
fix(linting): code formatting
1 parent 5d8dc04 commit d3b58e7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/ydata_profiling/utils/common.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ def calculate_nrows(df):
158158
n_partitions = df.rdd.getNumPartitions()
159159

160160
nrows = (
161-
df.rdd.mapPartitionsWithIndex(
162-
lambda idx, partition: [sum(1 for _ in partition)] if idx == 0 else [0]
163-
).collect()[0]
164-
* n_partitions
161+
df.rdd.mapPartitionsWithIndex(
162+
lambda idx, partition: [sum(1 for _ in partition)]
163+
if idx == 0
164+
else [0]
165+
).collect()[0]
166+
* n_partitions
165167
)
166168
except:
167169
nrows = 0

src/ydata_profiling/utils/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def info_def_report(self, df, timeseries: bool) -> None: # noqa: ANN001
2121
try:
2222
ncols = len(df.columns)
2323
except AttributeError:
24-
ncols=0
24+
ncols = 0
2525

2626
nrows = calculate_nrows(df)
2727

0 commit comments

Comments
 (0)