We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5cc65a commit 7e4aaa5Copy full SHA for 7e4aaa5
data.csv
@@ -0,0 +1,4 @@
1
+name,age,city
2
+Alice,30,New York
3
+Bob,25,Los Angeles
4
+Charlie,35,Chicago
data_analysis.py
@@ -0,0 +1,15 @@
+import pandas as pd
+
+# Load the CSV file
+data = pd.read_csv('data.csv')
5
6
+# Display the first few rows of the dataframe
7
+print(data.head())
8
9
+# Additional analysis (e.g., statistical summary)
10
+print("\nStatistical Summary:")
11
+print(data.describe())
12
13
+# Display data types
14
+print("\nData Types:")
15
+print(data.dtypes)
0 commit comments