Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/test/simulation/fixtures/notebook/dataframe.ipynb
13399 views
Kernel: Unknown Kernel
import numpy as np import pandas as pd
# Create and populate a 5x2 NumPy array. my_data = np.array([[0, 3], [10, 7], [20, 9], [30, 14], [40, 15]]) # Create a Python list that holds the names of the two columns. my_column_names = ['temperature', 'activity'] # Create a DataFrame. my_dataframe = pd.DataFrame(data=my_data, columns=my_column_names) # Print the entire DataFrame print(my_dataframe)