OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

i am having doubtt i java but pls check [closed]

  • Thread starter Thread starter Sappybara
  • Start date Start date
S

Sappybara

Guest
I have some issue is below code and want to resolve the issues I have some issue is below code and want to resolve the issues I have some issue is below code and want to resolve the issuesI have some issue is below code and want to resolve the issuesI have some issue is below code and want to resolve the issues

Code:
# acc age features
exp_feats=['pr_age', 'py_age']

# Plot expenditure features
fig=plt.figure(figsize=(10,20))
for i, var_name in enumerate(exp_feats):
    # Left plot
    ax=fig.add_subplot(5,2,2*i+1)
    sns.histplot(data=nf, x=var_name, axes=ax, bins=30, kde=False, hue='aml_txn_score')
    ax.set_title(var_name)
    
    # Right plot (truncated)
    ax=fig.add_subplot(5,2,2*i+2)
    sns.histplot(data=nf, x=var_name, axes=ax, bins=30, kde=True, hue='aml_txn_score')
    plt.ylim([0,100])
    ax.set_title(var_name)
fig.tight_layout()  # Improves appearance a bit
plt.show()
<p>I have some issue is below code and want to resolve the issues
I have some issue is below code and want to resolve the issues
I have some issue is below code and want to resolve the issuesI have some issue is below code and want to resolve the issuesI have some issue is below code and want to resolve the issues</p>
<pre><code># acc age features
exp_feats=['pr_age', 'py_age']

# Plot expenditure features
fig=plt.figure(figsize=(10,20))
for i, var_name in enumerate(exp_feats):
# Left plot
ax=fig.add_subplot(5,2,2*i+1)
sns.histplot(data=nf, x=var_name, axes=ax, bins=30, kde=False, hue='aml_txn_score')
ax.set_title(var_name)

# Right plot (truncated)
ax=fig.add_subplot(5,2,2*i+2)
sns.histplot(data=nf, x=var_name, axes=ax, bins=30, kde=True, hue='aml_txn_score')
plt.ylim([0,100])
ax.set_title(var_name)
fig.tight_layout() # Improves appearance a bit
plt.show()
</code></pre>
 

Latest posts

ن
Replies
0
Views
1
نعمان منذر محمود الجميلي
ن
S
Replies
0
Views
1
Sikandra
S
Top