Skip to content

Conversation

@SaiPraveenPanugantiBITS

No description provided.

DSaiAravindKasyap and others added 24 commits February 23, 2023 15:14
Assignment -1
The issue in the code block of seaborn histplot is due to "ValueError: cannot re index from a duplicate axis". This error is due to the pandas 'concat' operation performed during combining the test and training data files. 
Because of this operation the indexes are duplicated from both the files leading to exception.
To resolve this simply we can re index the data frame again to create new indexes for the dataset.[ i.e data = data.reset_index()] would do the job.
and normalized histogram can also be plotted.
------------------------------------------------
1. Resolved the below exception while plotting histogram

ValueError: cannot reindex from a duplicate axis
# trying to reindex on an axis with duplicates

Fix:
Adding a parameter -> ignore_index=True , while concatinating Pandas will ignore the index values in the inputs, and will generate a new index for the output
data = pd.concat(complete, ignore_index=True)

2. Plotted a normalized histogram for churn rate w.r.t the count of customer service calls
This reverts commit 2617048.
Assignment 1
------------------------------------------------
1. Resolved the below exception while plotting histogram

ValueError: cannot reindex from a duplicate axis
# trying to reindex on an axis with duplicates

Fix:
Adding a parameter -> ignore_index=True , while concatinating Pandas will ignore the index values in the inputs, and will generate a new index for the output
data = pd.concat(complete, ignore_index=True)

2. Plotted a normalized histogram for churn rate w.r.t the count of customer service calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.