This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the number of rows and columns | |
num_rows, num_cols = df.shape | |
# Print the number of rows | |
print(f"The file has {num_rows} rows.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
# Load & inspect dataset | |
input_datapath = "projects_processed.csv" | |
df = pd.read_csv(input_datapath, engine='python', index_col=None) | |
df = df.dropna() | |
df["combined"] = ( | |
df.project_name.str.strip() + ": " + df.blurb.str.strip() + " - " + df.description.str.strip() | |
) | |
df.head(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@title Create zip file of all clusters in the `clusters` folder in the file browser | |
!zip -r clusters.zip clusters |