Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CMT313_assessment_3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ziyan Lu
CMT313_assessment_3
Commits
269ec3e7
Commit
269ec3e7
authored
2 years ago
by
Junhao Zhou
Browse files
Options
Downloads
Patches
Plain Diff
Deleted Untitled-1.ipynb
parent
2a598e28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Untitled-1.ipynb
+0
-560
0 additions, 560 deletions
Untitled-1.ipynb
with
0 additions
and
560 deletions
Untitled-1.ipynb
deleted
100644 → 0
+
0
−
560
View file @
2a598e28
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>name</th>\n",
" <th>id</th>\n",
" <th>nametype</th>\n",
" <th>recclass</th>\n",
" <th>mass (g)</th>\n",
" <th>fall</th>\n",
" <th>year</th>\n",
" <th>reclat</th>\n",
" <th>reclong</th>\n",
" <th>GeoLocation</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Aachen</td>\n",
" <td>1</td>\n",
" <td>Valid</td>\n",
" <td>L5</td>\n",
" <td>21.0</td>\n",
" <td>Fell</td>\n",
" <td>1880.0</td>\n",
" <td>50.77500</td>\n",
" <td>6.08333</td>\n",
" <td>(50.775, 6.08333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Aarhus</td>\n",
" <td>2</td>\n",
" <td>Valid</td>\n",
" <td>H6</td>\n",
" <td>720.0</td>\n",
" <td>Fell</td>\n",
" <td>1951.0</td>\n",
" <td>56.18333</td>\n",
" <td>10.23333</td>\n",
" <td>(56.18333, 10.23333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Abee</td>\n",
" <td>6</td>\n",
" <td>Valid</td>\n",
" <td>EH4</td>\n",
" <td>107000.0</td>\n",
" <td>Fell</td>\n",
" <td>1952.0</td>\n",
" <td>54.21667</td>\n",
" <td>-113.00000</td>\n",
" <td>(54.21667, -113.0)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Acapulco</td>\n",
" <td>10</td>\n",
" <td>Valid</td>\n",
" <td>Acapulcoite</td>\n",
" <td>1914.0</td>\n",
" <td>Fell</td>\n",
" <td>1976.0</td>\n",
" <td>16.88333</td>\n",
" <td>-99.90000</td>\n",
" <td>(16.88333, -99.9)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Achiras</td>\n",
" <td>370</td>\n",
" <td>Valid</td>\n",
" <td>L6</td>\n",
" <td>780.0</td>\n",
" <td>Fell</td>\n",
" <td>1902.0</td>\n",
" <td>-33.16667</td>\n",
" <td>-64.95000</td>\n",
" <td>(-33.16667, -64.95)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" name id nametype recclass mass (g) fall year reclat \\\n",
"0 Aachen 1 Valid L5 21.0 Fell 1880.0 50.77500 \n",
"1 Aarhus 2 Valid H6 720.0 Fell 1951.0 56.18333 \n",
"2 Abee 6 Valid EH4 107000.0 Fell 1952.0 54.21667 \n",
"3 Acapulco 10 Valid Acapulcoite 1914.0 Fell 1976.0 16.88333 \n",
"4 Achiras 370 Valid L6 780.0 Fell 1902.0 -33.16667 \n",
"\n",
" reclong GeoLocation \n",
"0 6.08333 (50.775, 6.08333) \n",
"1 10.23333 (56.18333, 10.23333) \n",
"2 -113.00000 (54.21667, -113.0) \n",
"3 -99.90000 (16.88333, -99.9) \n",
"4 -64.95000 (-33.16667, -64.95) "
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df=pd.read_csv('Meteorite_Landings.csv')\n",
"df.head()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>name</th>\n",
" <th>id</th>\n",
" <th>nametype</th>\n",
" <th>recclass</th>\n",
" <th>mass (g)</th>\n",
" <th>fall</th>\n",
" <th>year</th>\n",
" <th>reclat</th>\n",
" <th>reclong</th>\n",
" <th>GeoLocation</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>16392</th>\n",
" <td>Hoba</td>\n",
" <td>11890</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IVB</td>\n",
" <td>60000000.0</td>\n",
" <td>Found</td>\n",
" <td>1920.0</td>\n",
" <td>-19.58333</td>\n",
" <td>17.91667</td>\n",
" <td>(-19.58333, 17.91667)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5373</th>\n",
" <td>Cape York</td>\n",
" <td>5262</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIIAB</td>\n",
" <td>58200000.0</td>\n",
" <td>Found</td>\n",
" <td>1818.0</td>\n",
" <td>76.13333</td>\n",
" <td>-64.93333</td>\n",
" <td>(76.13333, -64.93333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5365</th>\n",
" <td>Campo del Cielo</td>\n",
" <td>5247</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-MG</td>\n",
" <td>50000000.0</td>\n",
" <td>Found</td>\n",
" <td>1575.0</td>\n",
" <td>-27.46667</td>\n",
" <td>-60.58333</td>\n",
" <td>(-27.46667, -60.58333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5370</th>\n",
" <td>Canyon Diablo</td>\n",
" <td>5257</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-MG</td>\n",
" <td>30000000.0</td>\n",
" <td>Found</td>\n",
" <td>1891.0</td>\n",
" <td>35.05000</td>\n",
" <td>-111.03333</td>\n",
" <td>(35.05, -111.03333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3455</th>\n",
" <td>Armanty</td>\n",
" <td>2335</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIIE</td>\n",
" <td>28000000.0</td>\n",
" <td>Found</td>\n",
" <td>1898.0</td>\n",
" <td>47.00000</td>\n",
" <td>88.00000</td>\n",
" <td>(47.0, 88.0)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>12613</th>\n",
" <td>Gibeon</td>\n",
" <td>10912</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IVA</td>\n",
" <td>26000000.0</td>\n",
" <td>Found</td>\n",
" <td>1836.0</td>\n",
" <td>-25.50000</td>\n",
" <td>18.00000</td>\n",
" <td>(-25.5, 18.0)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5468</th>\n",
" <td>Chupaderos</td>\n",
" <td>5363</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIIAB</td>\n",
" <td>24300000.0</td>\n",
" <td>Found</td>\n",
" <td>1852.0</td>\n",
" <td>27.00000</td>\n",
" <td>-105.10000</td>\n",
" <td>(27.0, -105.1)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26297</th>\n",
" <td>Mundrabilla</td>\n",
" <td>16852</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-ung</td>\n",
" <td>24000000.0</td>\n",
" <td>Found</td>\n",
" <td>1911.0</td>\n",
" <td>-30.78333</td>\n",
" <td>127.55000</td>\n",
" <td>(-30.78333, 127.55)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>920</th>\n",
" <td>Sikhote-Alin</td>\n",
" <td>23593</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIAB</td>\n",
" <td>23000000.0</td>\n",
" <td>Fell</td>\n",
" <td>1947.0</td>\n",
" <td>46.16000</td>\n",
" <td>134.65333</td>\n",
" <td>(46.16, 134.65333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5016</th>\n",
" <td>Bacubirito</td>\n",
" <td>4919</td>\n",
" <td>Valid</td>\n",
" <td>Iron, ungrouped</td>\n",
" <td>22000000.0</td>\n",
" <td>Found</td>\n",
" <td>1863.0</td>\n",
" <td>26.20000</td>\n",
" <td>-107.83333</td>\n",
" <td>(26.2, -107.83333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>22921</th>\n",
" <td>Mbosi</td>\n",
" <td>15456</td>\n",
" <td>Valid</td>\n",
" <td>Iron, ungrouped</td>\n",
" <td>16000000.0</td>\n",
" <td>Found</td>\n",
" <td>1930.0</td>\n",
" <td>-9.11667</td>\n",
" <td>33.06667</td>\n",
" <td>(-9.11667, 33.06667)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>38317</th>\n",
" <td>Willamette</td>\n",
" <td>24269</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIIAB</td>\n",
" <td>15500000.0</td>\n",
" <td>Found</td>\n",
" <td>1902.0</td>\n",
" <td>45.36667</td>\n",
" <td>-122.58333</td>\n",
" <td>(45.36667, -122.58333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26174</th>\n",
" <td>Morito</td>\n",
" <td>16745</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IIIAB</td>\n",
" <td>10100000.0</td>\n",
" <td>Found</td>\n",
" <td>1600.0</td>\n",
" <td>27.05000</td>\n",
" <td>-105.43333</td>\n",
" <td>(27.05, -105.43333)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26338</th>\n",
" <td>Nantan</td>\n",
" <td>16906</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-MG</td>\n",
" <td>9500000.0</td>\n",
" <td>Found</td>\n",
" <td>1958.0</td>\n",
" <td>25.10000</td>\n",
" <td>107.70000</td>\n",
" <td>(25.1, 107.7)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5613</th>\n",
" <td>Cranbourne</td>\n",
" <td>5463</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-MG</td>\n",
" <td>8600000.0</td>\n",
" <td>Found</td>\n",
" <td>1854.0</td>\n",
" <td>-38.10000</td>\n",
" <td>145.30000</td>\n",
" <td>(-38.1, 145.3)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>36882</th>\n",
" <td>Santa Catharina</td>\n",
" <td>23162</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IAB-ung</td>\n",
" <td>7000000.0</td>\n",
" <td>Found</td>\n",
" <td>1875.0</td>\n",
" <td>-26.21667</td>\n",
" <td>-48.60000</td>\n",
" <td>(-26.21667, -48.6)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5083</th>\n",
" <td>Bendegó</td>\n",
" <td>5015</td>\n",
" <td>Valid</td>\n",
" <td>Iron, IC</td>\n",
" <td>5360000.0</td>\n",
" <td>Found</td>\n",
" <td>1784.0</td>\n",
" <td>-10.11667</td>\n",
" <td>-39.20000</td>\n",
" <td>(-10.11667, -39.2)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5201</th>\n",
" <td>Brenham</td>\n",
" <td>5136</td>\n",
" <td>Valid</td>\n",
" <td>Pallasite, PMG-an</td>\n",
" <td>4300000.0</td>\n",
" <td>Found</td>\n",
" <td>1882.0</td>\n",
" <td>37.58250</td>\n",
" <td>-99.16361</td>\n",
" <td>(37.5825, -99.16361)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>419</th>\n",
" <td>Jilin</td>\n",
" <td>12171</td>\n",
" <td>Valid</td>\n",
" <td>H5</td>\n",
" <td>4000000.0</td>\n",
" <td>Fell</td>\n",
" <td>1976.0</td>\n",
" <td>44.05000</td>\n",
" <td>126.16667</td>\n",
" <td>(44.05, 126.16667)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>38206</th>\n",
" <td>Vaca Muerta</td>\n",
" <td>24142</td>\n",
" <td>Valid</td>\n",
" <td>Mesosiderite-A1</td>\n",
" <td>3828000.0</td>\n",
" <td>Found</td>\n",
" <td>1861.0</td>\n",
" <td>-25.75000</td>\n",
" <td>-70.50000</td>\n",
" <td>(-25.75, -70.5)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" name id nametype recclass mass (g) fall \\\n",
"16392 Hoba 11890 Valid Iron, IVB 60000000.0 Found \n",
"5373 Cape York 5262 Valid Iron, IIIAB 58200000.0 Found \n",
"5365 Campo del Cielo 5247 Valid Iron, IAB-MG 50000000.0 Found \n",
"5370 Canyon Diablo 5257 Valid Iron, IAB-MG 30000000.0 Found \n",
"3455 Armanty 2335 Valid Iron, IIIE 28000000.0 Found \n",
"12613 Gibeon 10912 Valid Iron, IVA 26000000.0 Found \n",
"5468 Chupaderos 5363 Valid Iron, IIIAB 24300000.0 Found \n",
"26297 Mundrabilla 16852 Valid Iron, IAB-ung 24000000.0 Found \n",
"920 Sikhote-Alin 23593 Valid Iron, IIAB 23000000.0 Fell \n",
"5016 Bacubirito 4919 Valid Iron, ungrouped 22000000.0 Found \n",
"22921 Mbosi 15456 Valid Iron, ungrouped 16000000.0 Found \n",
"38317 Willamette 24269 Valid Iron, IIIAB 15500000.0 Found \n",
"26174 Morito 16745 Valid Iron, IIIAB 10100000.0 Found \n",
"26338 Nantan 16906 Valid Iron, IAB-MG 9500000.0 Found \n",
"5613 Cranbourne 5463 Valid Iron, IAB-MG 8600000.0 Found \n",
"36882 Santa Catharina 23162 Valid Iron, IAB-ung 7000000.0 Found \n",
"5083 Bendegó 5015 Valid Iron, IC 5360000.0 Found \n",
"5201 Brenham 5136 Valid Pallasite, PMG-an 4300000.0 Found \n",
"419 Jilin 12171 Valid H5 4000000.0 Fell \n",
"38206 Vaca Muerta 24142 Valid Mesosiderite-A1 3828000.0 Found \n",
"\n",
" year reclat reclong GeoLocation \n",
"16392 1920.0 -19.58333 17.91667 (-19.58333, 17.91667) \n",
"5373 1818.0 76.13333 -64.93333 (76.13333, -64.93333) \n",
"5365 1575.0 -27.46667 -60.58333 (-27.46667, -60.58333) \n",
"5370 1891.0 35.05000 -111.03333 (35.05, -111.03333) \n",
"3455 1898.0 47.00000 88.00000 (47.0, 88.0) \n",
"12613 1836.0 -25.50000 18.00000 (-25.5, 18.0) \n",
"5468 1852.0 27.00000 -105.10000 (27.0, -105.1) \n",
"26297 1911.0 -30.78333 127.55000 (-30.78333, 127.55) \n",
"920 1947.0 46.16000 134.65333 (46.16, 134.65333) \n",
"5016 1863.0 26.20000 -107.83333 (26.2, -107.83333) \n",
"22921 1930.0 -9.11667 33.06667 (-9.11667, 33.06667) \n",
"38317 1902.0 45.36667 -122.58333 (45.36667, -122.58333) \n",
"26174 1600.0 27.05000 -105.43333 (27.05, -105.43333) \n",
"26338 1958.0 25.10000 107.70000 (25.1, 107.7) \n",
"5613 1854.0 -38.10000 145.30000 (-38.1, 145.3) \n",
"36882 1875.0 -26.21667 -48.60000 (-26.21667, -48.6) \n",
"5083 1784.0 -10.11667 -39.20000 (-10.11667, -39.2) \n",
"5201 1882.0 37.58250 -99.16361 (37.5825, -99.16361) \n",
"419 1976.0 44.05000 126.16667 (44.05, 126.16667) \n",
"38206 1861.0 -25.75000 -70.50000 (-25.75, -70.5) "
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.nlargest(20, 'mass (g)')"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"def inputmeteor():\n",
" name = input(\"Enter the name of the meteor: \")\n",
" mass = input(\"Enter the mass of the meteor: \")\n",
" year = input(\"Enter the year of the meteor: \")\n",
" id = input(\"Enter the id of the meteor: \")\n",
" recclass = input(\"Enter the recclass of the meteor: \")\n",
" reclat = input(\"Enter the reclat of the meteor: \")\n",
" reclong = input(\"Enter the reclong of the meteor: \")\n",
" geolocation = input(\"Enter the geolocation of the meteor: \")\n",
" fall = input(\"Enter the fall of the meteor(Fell/Found): \")\n",
" newmeteor= dict(name=name,id=id,recclass=recclass,mass=mass,fall=fall,year=year,reclat=reclat,reclong=reclong,geolocation=geolocation)\n",
" return newmeteor"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"new_row = inputmeteor()\n",
"df = df.append(new_row, ignore_index=True)\n",
"\n",
"# å°æ´æ°åçæ°æ®è¡¨ä¿åå°CSVæä»¶ä¸\n",
"df.to_csv(\"Meteorite_Landings.csv\", index=False)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:code id: tags:
```
python
import
pandas
as
pd
```
%% Cell type:code id: tags:
```
python
df
=
pd
.
read_csv
(
'
Meteorite_Landings.csv
'
)
df
.
head
()
```
%% Output
name id nametype recclass mass (g) fall year reclat \
0 Aachen 1 Valid L5 21.0 Fell 1880.0 50.77500
1 Aarhus 2 Valid H6 720.0 Fell 1951.0 56.18333
2 Abee 6 Valid EH4 107000.0 Fell 1952.0 54.21667
3 Acapulco 10 Valid Acapulcoite 1914.0 Fell 1976.0 16.88333
4 Achiras 370 Valid L6 780.0 Fell 1902.0 -33.16667
reclong GeoLocation
0 6.08333 (50.775, 6.08333)
1 10.23333 (56.18333, 10.23333)
2 -113.00000 (54.21667, -113.0)
3 -99.90000 (16.88333, -99.9)
4 -64.95000 (-33.16667, -64.95)
%% Cell type:code id: tags:
```
python
df
.
nlargest
(
20
,
'
mass (g)
'
)
```
%% Output
name id nametype recclass mass (g) fall \
16392 Hoba 11890 Valid Iron, IVB 60000000.0 Found
5373 Cape York 5262 Valid Iron, IIIAB 58200000.0 Found
5365 Campo del Cielo 5247 Valid Iron, IAB-MG 50000000.0 Found
5370 Canyon Diablo 5257 Valid Iron, IAB-MG 30000000.0 Found
3455 Armanty 2335 Valid Iron, IIIE 28000000.0 Found
12613 Gibeon 10912 Valid Iron, IVA 26000000.0 Found
5468 Chupaderos 5363 Valid Iron, IIIAB 24300000.0 Found
26297 Mundrabilla 16852 Valid Iron, IAB-ung 24000000.0 Found
920 Sikhote-Alin 23593 Valid Iron, IIAB 23000000.0 Fell
5016 Bacubirito 4919 Valid Iron, ungrouped 22000000.0 Found
22921 Mbosi 15456 Valid Iron, ungrouped 16000000.0 Found
38317 Willamette 24269 Valid Iron, IIIAB 15500000.0 Found
26174 Morito 16745 Valid Iron, IIIAB 10100000.0 Found
26338 Nantan 16906 Valid Iron, IAB-MG 9500000.0 Found
5613 Cranbourne 5463 Valid Iron, IAB-MG 8600000.0 Found
36882 Santa Catharina 23162 Valid Iron, IAB-ung 7000000.0 Found
5083 Bendegó 5015 Valid Iron, IC 5360000.0 Found
5201 Brenham 5136 Valid Pallasite, PMG-an 4300000.0 Found
419 Jilin 12171 Valid H5 4000000.0 Fell
38206 Vaca Muerta 24142 Valid Mesosiderite-A1 3828000.0 Found
year reclat reclong GeoLocation
16392 1920.0 -19.58333 17.91667 (-19.58333, 17.91667)
5373 1818.0 76.13333 -64.93333 (76.13333, -64.93333)
5365 1575.0 -27.46667 -60.58333 (-27.46667, -60.58333)
5370 1891.0 35.05000 -111.03333 (35.05, -111.03333)
3455 1898.0 47.00000 88.00000 (47.0, 88.0)
12613 1836.0 -25.50000 18.00000 (-25.5, 18.0)
5468 1852.0 27.00000 -105.10000 (27.0, -105.1)
26297 1911.0 -30.78333 127.55000 (-30.78333, 127.55)
920 1947.0 46.16000 134.65333 (46.16, 134.65333)
5016 1863.0 26.20000 -107.83333 (26.2, -107.83333)
22921 1930.0 -9.11667 33.06667 (-9.11667, 33.06667)
38317 1902.0 45.36667 -122.58333 (45.36667, -122.58333)
26174 1600.0 27.05000 -105.43333 (27.05, -105.43333)
26338 1958.0 25.10000 107.70000 (25.1, 107.7)
5613 1854.0 -38.10000 145.30000 (-38.1, 145.3)
36882 1875.0 -26.21667 -48.60000 (-26.21667, -48.6)
5083 1784.0 -10.11667 -39.20000 (-10.11667, -39.2)
5201 1882.0 37.58250 -99.16361 (37.5825, -99.16361)
419 1976.0 44.05000 126.16667 (44.05, 126.16667)
38206 1861.0 -25.75000 -70.50000 (-25.75, -70.5)
%% Cell type:code id: tags:
```
python
def
inputmeteor
():
name
=
input
(
"
Enter the name of the meteor:
"
)
mass
=
input
(
"
Enter the mass of the meteor:
"
)
year
=
input
(
"
Enter the year of the meteor:
"
)
id
=
input
(
"
Enter the id of the meteor:
"
)
recclass
=
input
(
"
Enter the recclass of the meteor:
"
)
reclat
=
input
(
"
Enter the reclat of the meteor:
"
)
reclong
=
input
(
"
Enter the reclong of the meteor:
"
)
geolocation
=
input
(
"
Enter the geolocation of the meteor:
"
)
fall
=
input
(
"
Enter the fall of the meteor(Fell/Found):
"
)
newmeteor
=
dict
(
name
=
name
,
id
=
id
,
recclass
=
recclass
,
mass
=
mass
,
fall
=
fall
,
year
=
year
,
reclat
=
reclat
,
reclong
=
reclong
,
geolocation
=
geolocation
)
return
newmeteor
```
%% Cell type:code id: tags:
```
python
new_row
=
inputmeteor
()
df
=
df
.
append
(
new_row
,
ignore_index
=
True
)
# å°æ´æ°åçæ°æ®è¡¨ä¿åå°CSVæä»¶ä¸
df
.
to_csv
(
"
Meteorite_Landings.csv
"
,
index
=
False
)
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment