Advertisement
1fractal

Untitled

Sep 28th, 2023
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. df = pd.read_csv('your_file.csv')
  4.  
  5. print(df.head())
  6.  
  7. # Access a specific column by name
  8. column_data = df['ColumnName']
  9.  
  10. # Filter rows based on a condition
  11. filtered_data = df[df['Column1'] > 50]
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement