Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
slayerrr12 committed Dec 15, 2023
1 parent 0f7f0a8 commit 94b41b0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions BasicPandas/PandasBasic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,31 +98,27 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 30,
"id": "5e66bc1a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" Name Age City\n",
"0 Alice 25 New York\n",
"1 Bob 30 San Francisco\n",
"2 Charlie 35 Los Angeles\n"
" Column1 Column2\n",
"0 1 A\n",
"1 2 B\n",
"2 3 C\n"
]
}
],
"source": [
"# Creating a DataFrame from a dictionary of data\n",
"data = {'Name': ['Alice', 'Bob', 'Charlie'],\n",
" 'Age': [25, 30, 35],\n",
" 'City': ['New York', 'San Francisco', 'Los Angeles']}\n",
"\n",
"df = pd.DataFrame(data)\n",
"\n",
"# Displaying the DataFrame\n",
"print(df)"
"data = [{'Column1': 1, 'Column2': 'A'}, {'Column1': 2, 'Column2': 'B'}, {'Column1': 3, 'Column2': 'C'}]\n",
"df = pd.DataFrame(data)\n",
"print(df)\n"
]
},
{
Expand Down

0 comments on commit 94b41b0

Please sign in to comment.