question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lambda problems in summarizer process

See original GitHub issue

Hi,

I’m currently using Pandas-profiling to get information from a parquet file. My dataframe contains 140 columns.

When I try to generate the profiling report, I’m getting this error:

TypeError: <lambda>() argument after * must be an iterable, not bool

I tried to change the column position but the error persists.

My Code is:

df = pd.read_parquet("ConsultationForm.parquet", columns= sorted(columnNames),engine="pyarrow")

df = df.fillna(value=np.nan)

df.head()

profile = ProfileReport(df, title="Pandas Profiling Report", explorative=True, minimal=True)
profile.to_file('ConsultationForm_profiling3.html')

I’m doing something wrong?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
sbrugmancommented, Jan 8, 2021

Good catch, it’s a special case when one or more columns are fully empty. Until I’ve patched it, you can use this workaround (dropping empty columns):

df = df.dropna(how='all', axis=1)
0reactions
sbrugmancommented, Feb 8, 2021

@Jrecos I’ve just released v2.10.1 that should resolve your issue!

Want me to continue to support this package? Please consider sponsoring

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's in a Lambda?. An overview of anonymous functions in…
Using lambda functions solves this problem: the programmer can define a lambda function and use it immediately without breaking the flow of the...
Read more >
Lambda Function in Python - How and When to use?
While normal functions are defined using the def keyword, anonymous functions are defined using the lambda keyword.
Read more >
Lambda function scaling - AWS Documentation
To summarize, your function's concurrency is the number of concurrent requests that it's handling at the same time. In response to an increase...
Read more >
13 AWS Lambda design considerations you need to know about
If you're designing with AWS Lambda, here are a few things you'll need to keep ... Breaking the problem into smaller, more manageable...
Read more >
AWS Lambda - does it fit in with data processing
In this post, I will summarize the good and bad sides of my recent experiences with AWS Lambda applied to the data processing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found