File size: 316 Bytes
d95db82 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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()
|