Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pilo #3234

Open
zerogro42 opened this issue Jan 10, 2025 · 0 comments
Open

Pilo #3234

zerogro42 opened this issue Jan 10, 2025 · 0 comments

Comments

@zerogro42
Copy link

### Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any context or screenshots about the feature request here.
import pandas as pd
import matplotlib.pyplot as plt

Load the dataset from a CSV file

df = pd.read_csv('data.csv')

Display the first few rows of the dataset

print("First few rows of the dataset:")
print(df.head())

Display basic information about the dataset

print("\nBasic information about the dataset:")
print(df.info())

Display summary statistics for the dataset

print("\nSummary statistics for the dataset:")
print(df.describe())

Plotting data (e.g., histogram of a specific column)

column_to_plot = 'column_name' # Replace with the actual column name
plt.hist(df[column_to_plot], bins=30, edgecolor='k')
plt.xlabel(column_to_plot)
plt.ylabel('Frequency')
plt.title(f'Histogram of {column_to_plot}')
plt.show()

Finding correlation between columns

correlation_matrix = df.corr()
print("\nCorrelation matrix:")
print(correlation_matrix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant