test2023h5's picture
Upload 180 files
d95db82 verified
raw
history blame contribute delete
316 Bytes
import pandas as pd
def main():
raw_data = "raw/planets.csv"
df = pd.read_csv(raw_data, index_col="rowid", skiprows=10)
df.columns = ["method", "number", "orbital_period",
"mass", "distance", "year"]
df.to_csv("planets.csv", index=False)
if __name__ == "__main__":
main()