Files
stockdb/write_to_db.py

19 lines
461 B
Python

import pandas as pd
# Read the data into a Pandas DataFrame
file_path = 'sec_data/2024q1/tag.txt'
df = pd.read_csv(file_path, sep='\t')
# Inspect the DataFrame
print("First rows of the DataFrame:")
print(df.head(10))
# Get the DataFrame Information
print("\nSummary Information:")
print(df.info())
# Check if there are any missing values in the DataFrame
missing_values = df.isnull().sum()
print("\nMissing Values:")
print(missing_values)