jupyter notebook下mongodb的使用

作者: 宁静消失何如 | 来源:发表于2017-05-20 19:53 被阅读125次

1
首先插一嘴,如何导入.json文件
命令行窗口打开 mongo.exe
创建数据库 db.createCollection('the_filename')
再打开个命令行窗口,用来导入.json文件到 the_filename数据库
mongoimport -d database_name -c the_filename 盘/file_name.json

2
命令行窗口 输入 ''' jupyter notebook ''' 打开 在网页右边 点击Python 3 新建一个页面

image.png

3
快捷键 Enter 跳下一行
Shift + Enter 执行程序 并跳转下一段

        Tab 可以补齐命令

相关文章

网友评论

    本文标题:jupyter notebook下mongodb的使用

    本文链接:https://www.haomeiwen.com/subject/qkbpxxtx.html